File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ use crate::vec::Vec;
2222/// trait.
2323///
2424/// Please note that each call to [`read()`] may involve a system call, and
25- /// `BufReader`, will be more efficient.
2625/// therefore, using something that implements [`BufRead`], such as
26+ /// [`BufReader`], will be more efficient.
2727///
2828/// [`BufRead`]: crate::io::BufRead
29+ /// [`BufReader`]: crate::io::BufReader
2930///
3031/// Repeated calls to the reader use the same cursor, so for example
3132/// calling `read_to_end` twice on a `File` will only return the file's
@@ -482,7 +483,9 @@ pub trait Read {
482483 ///
483484 /// The default implementation calls `read` for each byte,
484485 /// which can be very inefficient for data that's not in memory,
485- /// such as `File`. Consider using a `BufReader` in such cases.
486+ /// such as `File`. Consider using a [`BufReader`] in such cases.
487+ ///
488+ /// [`BufReader`]: crate::io::BufReader
486489 ///
487490 /// # Examples
488491 ///
You can’t perform that action at this time.
0 commit comments