File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1016,10 +1016,11 @@ strings) and is usually what you want when working with iterators.
1016
1016
1017
1017
The ` BufReader ` , ` BufWriter ` and ` BufStream ` types stay
1018
1018
essentially as they are today, except that for streams and writers the
1019
- ` into_inner ` method yields the structure back in the case of a flush error:
1020
-
1019
+ ` into_inner ` method yields the structure back in the case of a write error,
1020
+ and its behavior is clarified to writing out the buffered data without
1021
+ flushing the underlying reader:
1021
1022
``` rust
1022
- // If flushing fails, you get the unflushed data back
1023
+ // If writing fails, you get the unwritten data back
1023
1024
fn into_inner (self ) -> Result <W , IntoInnerError <Self >>;
1024
1025
1025
1026
pub struct IntoInnerError <W >(W , Error );
You can’t perform that action at this time.
0 commit comments