about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorChristopher Serr <cryze92@gmail.com>2016-09-21 21:11:53 +0200
committerGitHub <noreply@github.com>2016-09-21 21:11:53 +0200
commite107c8b84969fbe52cae7c9fd61858fddc6e016b (patch)
treeac3612d53d357a8fa850b1ec794eb80f03ede4dc /src/libstd
parent53f97302910bdfd9080648991d31b000a21d877d (diff)
downloadrust-e107c8b84969fbe52cae7c9fd61858fddc6e016b.tar.gz
rust-e107c8b84969fbe52cae7c9fd61858fddc6e016b.zip
Fix outdated Doc Comment on BufReader::seek
A long time ago non-panicking `unwrap` methods were renamed to `into_inner` in this Pull Request: https://github.com/rust-lang/rust/pull/19149

Looks like this doc comment was not updated however.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/buffered.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs
index dbb45d54f38..4ff8c6ac128 100644
--- a/src/libstd/io/buffered.rs
+++ b/src/libstd/io/buffered.rs
@@ -216,8 +216,8 @@ impl<R: Seek> Seek for BufReader<R> {
     ///
     /// Seeking always discards the internal buffer, even if the seek position
     /// would otherwise fall within it. This guarantees that calling
-    /// `.unwrap()` immediately after a seek yields the underlying reader at
-    /// the same position.
+    /// `.into_inner()` immediately after a seek yields the underlying reader
+    /// at the same position.
     ///
     /// See `std::io::Seek` for more details.
     ///