Skip to content

Commit

Permalink
Remove outdated notice from BufRead::lines docs.
Browse files Browse the repository at this point in the history
There is no `read_string` function, and `lines` never returns an error.
  • Loading branch information
mbrubeck committed Apr 6, 2015
1 parent 8fcc5bd commit 6e86c63
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libstd/io/mod.rs
Expand Up @@ -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 }
Expand Down

0 comments on commit 6e86c63

Please sign in to comment.