about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-22 11:25:02 -0700
committerGitHub <noreply@github.com>2016-09-22 11:25:02 -0700
commitc1e39380fbb04691cdcf6c58e2c0054110fa698c (patch)
tree6abb7ba9f93258c2e86ff4123a5e27189209c888 /src/libstd
parentbc7991a54ed4be556c5fc165e6f00b16646950b2 (diff)
parente107c8b84969fbe52cae7c9fd61858fddc6e016b (diff)
downloadrust-c1e39380fbb04691cdcf6c58e2c0054110fa698c.tar.gz
rust-c1e39380fbb04691cdcf6c58e2c0054110fa698c.zip
Rollup merge of #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: 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.
     ///