diff options
| author | Frank Steffahn <fdsteffahn@gmail.com> | 2025-02-20 17:24:09 +0100 |
|---|---|---|
| committer | Frank Steffahn <fdsteffahn@gmail.com> | 2025-02-21 03:56:49 +0100 |
| commit | bf26f2442365bbdc6c0785d884a042a824e1d37f (patch) | |
| tree | 99f6b19c3c459cdd3f977146c571299a812a2f3e /library/std/src | |
| parent | 28b83ee59698ae069f5355b8e03f976406f410f5 (diff) | |
| download | rust-bf26f2442365bbdc6c0785d884a042a824e1d37f.tar.gz rust-bf26f2442365bbdc6c0785d884a042a824e1d37f.zip | |
Clarify/update comments in `BufRead::read_line`'s default body
with where to *actually* look for more details
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 980ea1478e0..7f610bc88bf 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -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)) } } |
