Update quinn/src/recv_stream.rs

Co-authored-by: Benjamin Saunders <ben.e.saunders@gmail.com>
This commit is contained in:
Floris Bruynooghe
2023-02-26 11:07:38 +01:00
committed by Benjamin Saunders
parent 162032d184
commit b95e50fb1f
+1 -1
View File
@@ -29,7 +29,7 @@ use crate::{
/// carried data.
///
/// Even if the application layer logic already knows it read all the data because it does
/// its own framing, it must still read until it reaches the end of the [`RecvStream`].
/// its own framing, it should still read until it reaches the end of the [`RecvStream`].
/// Otherwise it risks inadvertently calling [`RecvStream::stop`] if it drops the stream.
/// And calling [`RecvStream::stop`] could result in the connected [`SendStream::finish`]
/// call failing with a [`WriteError::Stopped`] error.