about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-02 22:44:23 +0100
committerGitHub <noreply@github.com>2025-03-02 22:44:23 +0100
commitf47c7e8564a581e262fc4a9f51fbaf89ed3ba7c8 (patch)
tree092c7e23990139886fb5a416705421cbf0b656db /library/std/src
parentf4a216d28ee635afce685b4206e713579f66e130 (diff)
parentbf26f2442365bbdc6c0785d884a042a824e1d37f (diff)
downloadrust-f47c7e8564a581e262fc4a9f51fbaf89ed3ba7c8.tar.gz
rust-f47c7e8564a581e262fc4a9f51fbaf89ed3ba7c8.zip
Rollup merge of #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.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/mod.rs2
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)) }
     }