Skip to content

Commit bf26f24

Browse files
committed
Clarify/update comments in BufRead::read_line's default body
with where to *actually* look for more details
1 parent 28b83ee commit bf26f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ pub trait BufRead: Read {
25342534
fn read_line(&mut self, buf: &mut String) -> Result<usize> {
25352535
// Note that we are not calling the `.read_until` method here, but
25362536
// rather our hardcoded implementation. For more details as to why, see
2537-
// the comments in `read_to_end`.
2537+
// the comments in `default_read_to_string`.
25382538
unsafe { append_to_string(buf, |b| read_until(self, b'\n', b)) }
25392539
}
25402540

0 commit comments

Comments
 (0)