From 8fcc5bd6a7db63f435f7a789d3134f6e86cf693d Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 6 Apr 2015 08:36:37 -0700 Subject: [PATCH 1/2] Fix broken link and markup in `trait Any` docs. --- src/libcore/any.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libcore/any.rs b/src/libcore/any.rs index 320fdd50b3510..687675f12ef64 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` From 6e86c636e550cec54f51f1ce56a1f583dd37c90d Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 6 Apr 2015 08:40:11 -0700 Subject: [PATCH 2/2] Remove outdated notice from BufRead::lines docs. There is no `read_string` function, and `lines` never returns an error. --- src/libstd/io/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index c6335015d7251..f0f37117ed3be 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`. 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 where Self: Sized { Lines { buf: self }