Skip to content

Commit 9e18326

Browse files
committed
Update docs for take and broadcast
Better and more consistent links to their creators.
1 parent 4e51763 commit 9e18326

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/libstd/io/mod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,10 @@ pub trait BufRead: Read {
11671167

11681168
/// A `Write` adaptor which will write data to multiple locations.
11691169
///
1170-
/// For more information, see `Write::broadcast`.
1170+
/// This struct is generally created by calling [`broadcast()`][broadcast] on a
1171+
/// writer. Please see the documentation of `broadcast()` for more details.
1172+
///
1173+
/// [broadcast]: trait.Write.html#method.broadcast
11711174
#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast")]
11721175
pub struct Broadcast<T, U> {
11731176
first: T,
@@ -1213,7 +1216,10 @@ impl<T: Read, U: Read> Read for Chain<T, U> {
12131216

12141217
/// Reader adaptor which limits the bytes read from an underlying reader.
12151218
///
1216-
/// For more information, see `Read::take`.
1219+
/// This struct is generally created by calling [`take()`][take] on a reader.
1220+
/// Please see the documentation of `take()` for more details.
1221+
///
1222+
/// [take]: trait.Read.html#method.take
12171223
#[stable(feature = "rust1", since = "1.0.0")]
12181224
pub struct Take<T> {
12191225
inner: T,

0 commit comments

Comments
 (0)