From bf26f2442365bbdc6c0785d884a042a824e1d37f Mon Sep 17 00:00:00 2001 From: Frank Steffahn Date: Thu, 20 Feb 2025 17:24:09 +0100 Subject: [PATCH] Clarify/update comments in `BufRead::read_line`'s default body with where to *actually* look for more details --- library/std/src/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 980ea1478e084..7f610bc88bfd7 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 { // 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)) } }