@@ -61,6 +61,11 @@ pub fn copy<R: Read, W: Write>(reader: &mut R, writer: &mut W) -> io::Result<u64
61
61
}
62
62
63
63
/// A reader which is always at EOF.
64
+ ///
65
+ /// This struct is generally created by calling [`empty()`][empty]. Please see
66
+ /// the documentation of `empty()` for more details.
67
+ ///
68
+ /// [empty]: fn.empty.html
64
69
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
65
70
pub struct Empty { _priv : ( ) }
66
71
@@ -95,7 +100,12 @@ impl BufRead for Empty {
95
100
fn consume ( & mut self , _n : usize ) { }
96
101
}
97
102
98
- /// A reader which infinitely yields one byte.
103
+ /// A reader which yields one byte over and over and over and over and over and...
104
+ ///
105
+ /// This struct is generally created by calling [`repeat()`][repeat]. Please
106
+ /// see the documentation of `repeat()` for more details.
107
+ ///
108
+ /// [empty]: fn.repeat.html
99
109
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
100
110
pub struct Repeat { byte : u8 }
101
111
@@ -117,6 +127,11 @@ impl Read for Repeat {
117
127
}
118
128
119
129
/// A writer which will move data into the void.
130
+ ///
131
+ /// This struct is generally created by calling [`sink()`][sink]. Please
132
+ /// see the documentation of `sink()` for more details.
133
+ ///
134
+ /// [empty]: fn.sink.html
120
135
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
121
136
pub struct Sink { _priv : ( ) }
122
137
0 commit comments