Skip to content

Commit 47a6506

Browse files
authored
Unrolled build for rust-lang#137375
Rollup merge of rust-lang#137375 - steffahn:clarify-read_line-comment, r=Mark-Simulacrum Minor internal comments fix for `BufRead::read_line` Just a little fix that came up while I was reading through this source code, and had to search for a few minutes to find out what was actually *meant* here.
2 parents daf5985 + bf26f24 commit 47a6506

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)