Skip to content

Commit b2ca62c

Browse files
committed
Fix documentation links to BufReader
1 parent ca27ad0 commit b2ca62c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

library/alloc/src/io/read.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
///

0 commit comments

Comments
 (0)