We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BufRead::read_line
1 parent 28b83ee commit bf26f24Copy full SHA for bf26f24
library/std/src/io/mod.rs
@@ -2534,7 +2534,7 @@ pub trait BufRead: Read {
2534
fn read_line(&mut self, buf: &mut String) -> Result<usize> {
2535
// Note that we are not calling the `.read_until` method here, but
2536
// rather our hardcoded implementation. For more details as to why, see
2537
- // the comments in `read_to_end`.
+ // the comments in `default_read_to_string`.
2538
unsafe { append_to_string(buf, |b| read_until(self, b'\n', b)) }
2539
}
2540
0 commit comments