Skip to content

Commit c1e3938

Browse files
author
Jonathan Turner
authored
Rollup merge of rust-lang#36632 - CryZe:patch-3, r=sfackler
Fix outdated Doc Comment on BufReader::seek A long time ago non-panicking `unwrap` methods were renamed to `into_inner` in this Pull Request: rust-lang#19149 Looks like this doc comment was not updated however.
2 parents bc7991a + e107c8b commit c1e3938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/io/buffered.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ impl<R: Seek> Seek for BufReader<R> {
216216
///
217217
/// Seeking always discards the internal buffer, even if the seek position
218218
/// would otherwise fall within it. This guarantees that calling
219-
/// `.unwrap()` immediately after a seek yields the underlying reader at
220-
/// the same position.
219+
/// `.into_inner()` immediately after a seek yields the underlying reader
220+
/// at the same position.
221221
///
222222
/// See `std::io::Seek` for more details.
223223
///

0 commit comments

Comments
 (0)