From 162032d18428828850b05cf7d5ce110985563bb4 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Fri, 17 Feb 2023 09:55:31 +0100 Subject: [PATCH] improve description of effect of calling stop --- quinn/src/recv_stream.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quinn/src/recv_stream.rs b/quinn/src/recv_stream.rs index 8e91911ae..46d6588e0 100644 --- a/quinn/src/recv_stream.rs +++ b/quinn/src/recv_stream.rs @@ -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