improve description of effect of calling stop

This commit is contained in:
Floris Bruynooghe
2023-02-17 09:55:31 +01:00
committed by Benjamin Saunders
parent b833c0e626
commit 162032d184
+2 -1
View File
@@ -59,7 +59,8 @@ use crate::{
/// ```
///
/// Note that in this example the receiver sends an error to the sender if it received some
/// unexpected data, forcing the stream to finish in an error state.
/// unexpected data, interrupting any further attempts to send data. But crucially only
/// after it attempted to read the end of the stream.
///
/// [`ReadError`]: crate::ReadError
/// [`stop()`]: RecvStream::stop