Skip to content

Commit 192523c

Browse files
committed
Rollup merge of rust-lang#27167 - steveklabnik:doc_std_io_take, r=alexcrichton
Better and more consistent links to their creators.
2 parents ce5406e + 9e18326 commit 192523c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/libstd/io/mod.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,10 @@ pub trait BufRead: Read {
13961396

13971397
/// A `Write` adaptor which will write data to multiple locations.
13981398
///
1399-
/// For more information, see `Write::broadcast`.
1399+
/// This struct is generally created by calling [`broadcast()`][broadcast] on a
1400+
/// writer. Please see the documentation of `broadcast()` for more details.
1401+
///
1402+
/// [broadcast]: trait.Write.html#method.broadcast
14001403
#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast")]
14011404
pub struct Broadcast<T, U> {
14021405
first: T,
@@ -1445,7 +1448,10 @@ impl<T: Read, U: Read> Read for Chain<T, U> {
14451448

14461449
/// Reader adaptor which limits the bytes read from an underlying reader.
14471450
///
1448-
/// For more information, see `Read::take`.
1451+
/// This struct is generally created by calling [`take()`][take] on a reader.
1452+
/// Please see the documentation of `take()` for more details.
1453+
///
1454+
/// [take]: trait.Read.html#method.take
14491455
#[stable(feature = "rust1", since = "1.0.0")]
14501456
pub struct Take<T> {
14511457
inner: T,

0 commit comments

Comments
 (0)