about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-07 18:13:24 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-07 18:13:24 +0530
commitb3bcbb1a22f6aa8c39055100b920904283fc8c2c (patch)
treebf98143b0e0eea94d0e750c8b196d4f3759a5dd5 /src
parent322e4a18e3a64745f761a072b311966567488f9d (diff)
parent6e86c636e550cec54f51f1ce56a1f583dd37c90d (diff)
downloadrust-b3bcbb1a22f6aa8c39055100b920904283fc8c2c.tar.gz
rust-b3bcbb1a22f6aa8c39055100b920904283fc8c2c.zip
Rollup merge of #24113 - mbrubeck:doc-edit, r=steveklabnik
 * Fix broken \"module-level documentation\" link on the [`trait Any` docs](http://doc.rust-lang.org/std/any/trait.Any.html) and related broken markup on the [`std::any` docs](http://doc.rust-lang.org/std/any/index.html).

* Remove an outdated or incorrect notice in the `BufRead::lines` docs. There is no such `read_string` function, and `lines` never returns an error.

r? @steveklabnik
Diffstat (limited to 'src')
-rw-r--r--src/libcore/any.rs5
-rw-r--r--src/libstd/io/mod.rs3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs
index 320fdd50b35..687675f12ef 100644
--- a/src/libcore/any.rs
+++ b/src/libcore/any.rs
@@ -83,11 +83,12 @@ use marker::{Reflect, Sized};
 // Any trait
 ///////////////////////////////////////////////////////////////////////////////
 
-/// A type to emulate dynamic typing. See the [module-level documentation][mod] for more details.
+/// A type to emulate dynamic typing.
 ///
 /// Every type with no non-`'static` references implements `Any`.
+/// See the [module-level documentation][mod] for more details.
 ///
-/// [mod]: ../index.html
+/// [mod]: index.html
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait Any: Reflect + 'static {
     /// Get the `TypeId` of `self`
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index c6335015d72..f0f37117ed3 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -618,9 +618,6 @@ pub trait BufRead: Read {
     /// The iterator returned from this function will yield instances of
     /// `io::Result<String>`. Each string returned will *not* have a newline
     /// byte (the 0xA byte) at the end.
-    ///
-    /// This function will yield errors whenever `read_string` would have also
-    /// yielded an error.
     #[stable(feature = "rust1", since = "1.0.0")]
     fn lines(self) -> Lines<Self> where Self: Sized {
         Lines { buf: self }