Clarify/update comments in BufRead::read_line
's default body
with where to *actually* look for more details
This commit is contained in:
parent
28b83ee596
commit
bf26f24423
1 changed files with 1 additions and 1 deletions
|
@ -2534,7 +2534,7 @@ pub trait BufRead: Read {
|
|||
fn read_line(&mut self, buf: &mut String) -> Result<usize> {
|
||||
// Note that we are not calling the `.read_until` method here, but
|
||||
// rather our hardcoded implementation. For more details as to why, see
|
||||
// the comments in `read_to_end`.
|
||||
// the comments in `default_read_to_string`.
|
||||
unsafe { append_to_string(buf, |b| read_until(self, b'\n', b)) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue