Skip to content

Commit d301da5

Browse files
committed
Clarify appending behavior of 'io::Read::read_to_string()'.
1 parent 8a11b8c commit d301da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ pub trait Read {
601601
read_to_end(self, buf)
602602
}
603603

604-
/// Read all bytes until EOF in this source, placing them into `buf`.
604+
/// Read all bytes until EOF in this source, appending them to `buf`.
605605
///
606606
/// If successful, this function returns the number of bytes which were read
607607
/// and appended to `buf`.

0 commit comments

Comments
 (0)