We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6d724 commit 367f46dCopy full SHA for 367f46d
src/libstd/io/mod.rs
@@ -370,6 +370,13 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
370
/// throughout `std::io` take and provide types which implement the `Read`
371
/// trait.
372
///
373
+/// Please note that each call to `read` may involve a system call, and
374
+/// therefore, using something that implements [`BufRead`][bufread], such as
375
+/// [`BufReader`][bufreader], will be more efficient.
376
+///
377
+/// [bufread]: trait.BufRead.html
378
+/// [bufreader]: struct.BufReader.html
379
380
/// # Examples
381
382
/// [`File`][file]s implement `Read`:
0 commit comments