Skip to content

Commit 4940e3f

Browse files
authored
Merge pull request rust-lang#201 from dwrensha/copy-pasta
fix some copy/paste errors in docs
2 parents a125ba5 + ac89410 commit 4940e3f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/stream/mod.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ pub trait Stream {
148148
///
149149
/// This method will consume ownership of this stream, returning an
150150
/// implementation of a standard iterator. This iterator will *block the
151-
/// current thread* on each call to `next` if the item in the future isn't
151+
/// current thread* on each call to `next` if the item in the stream isn't
152152
/// ready yet.
153153
///
154154
/// > **Note:** This method is not appropriate to call on event loops or
155155
/// > similar I/O situations because it will prevent the event
156156
/// > loop from making progress (this blocks the thread). This
157157
/// > method should only be called when it's guaranteed that the
158-
/// > blocking work associated with this future will be completed
158+
/// > blocking work associated with this stream will be completed
159159
/// > by another thread.
160160
///
161161
/// # Behavior
@@ -218,7 +218,7 @@ pub trait Stream {
218218
/// they are made available, and the callback will be executed inline with
219219
/// calls to `poll`.
220220
///
221-
/// Note that this function consumes the receiving future and returns a
221+
/// Note that this function consumes the receiving stream and returns a
222222
/// wrapped version of it, similar to the existing `map` methods in the
223223
/// standard library.
224224
///
@@ -243,7 +243,7 @@ pub trait Stream {
243243
/// they are made available, and the callback will be executed inline with
244244
/// calls to `poll`.
245245
///
246-
/// Note that this function consumes the receiving future and returns a
246+
/// Note that this function consumes the receiving stream and returns a
247247
/// wrapped version of it, similar to the existing `map_err` methods in the
248248
/// standard library.
249249
///
@@ -272,7 +272,7 @@ pub trait Stream {
272272
///
273273
/// All errors are passed through without filtering in this combinator.
274274
///
275-
/// Note that this function consumes the receiving future and returns a
275+
/// Note that this function consumes the receiving stream and returns a
276276
/// wrapped version of it, similar to the existing `filter` methods in the
277277
/// standard library.
278278
///
@@ -301,7 +301,7 @@ pub trait Stream {
301301
///
302302
/// All errors are passed through without filtering in this combinator.
303303
///
304-
/// Note that this function consumes the receiving future and returns a
304+
/// Note that this function consumes the receiving stream and returns a
305305
/// wrapped version of it, similar to the existing `filter_map` methods in the
306306
/// standard library.
307307
///
@@ -340,7 +340,7 @@ pub trait Stream {
340340
/// trait so it is possible to simply alter the `Result` yielded to the
341341
/// closure and return it.
342342
///
343-
/// Note that this function consumes the receiving future and returns a
343+
/// Note that this function consumes the receiving stream and returns a
344344
/// wrapped version of it.
345345
///
346346
/// # Examples
@@ -382,7 +382,7 @@ pub trait Stream {
382382
/// trait so it is possible to simply alter the `Result` yielded to the
383383
/// closure and return it.
384384
///
385-
/// Note that this function consumes the receiving future and returns a
385+
/// Note that this function consumes the receiving stream and returns a
386386
/// wrapped version of it.
387387
///
388388
/// # Examples
@@ -425,7 +425,7 @@ pub trait Stream {
425425
/// trait so it is possible to simply alter the `Result` yielded to the
426426
/// closure and return it.
427427
///
428-
/// Note that this function consumes the receiving future and returns a
428+
/// Note that this function consumes the receiving stream and returns a
429429
/// wrapped version of it.
430430
///
431431
/// # Examples

0 commit comments

Comments
 (0)