Rollup merge of #38505 - estebank:why-lines, r=frewsxcv
Docs: Explain why/when `.lines()` returns an error Fix #37744.
This commit is contained in:
commit
3c26ff450c
1 changed files with 6 additions and 0 deletions
|
@ -1425,6 +1425,12 @@ pub trait BufRead: Read {
|
|||
/// println!("{}", line.unwrap());
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Each line of the iterator has the same error semantics as [`BufRead::read_line()`].
|
||||
///
|
||||
/// [`BufRead::read_line()`]: trait.BufRead.html#method.read_line
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
fn lines(self) -> Lines<Self> where Self: Sized {
|
||||
Lines { buf: self }
|
||||
|
|
Loading…
Add table
Reference in a new issue