Skip to content

Commit 6e86c63

Browse files
committed
Remove outdated notice from BufRead::lines docs.
There is no `read_string` function, and `lines` never returns an error.
1 parent 8fcc5bd commit 6e86c63

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libstd/io/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,6 @@ pub trait BufRead: Read {
618618
/// The iterator returned from this function will yield instances of
619619
/// `io::Result<String>`. Each string returned will *not* have a newline
620620
/// byte (the 0xA byte) at the end.
621-
///
622-
/// This function will yield errors whenever `read_string` would have also
623-
/// yielded an error.
624621
#[stable(feature = "rust1", since = "1.0.0")]
625622
fn lines(self) -> Lines<Self> where Self: Sized {
626623
Lines { buf: self }

0 commit comments

Comments
 (0)