Skip to content

Commit 35d1555

Browse files
Rollup merge of #47216 - SergioBenitez:doc-fix, r=Mark-Simulacrum
Clarify appending behavior of 'io::Read::read_to_string()'. A simple doc clarification.
2 parents b310417 + d301da5 commit 35d1555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/mod.rs

+1-1
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)