Skip to content

Commit 049fcf8

Browse files
taiki-eNemo157
authored andcommitted
Fix old method names in documentation
1 parent e101c89 commit 049fcf8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

futures-util/src/stream/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub trait StreamExt: Stream {
156156
/// Note that because `next` doesn't take ownership over the stream,
157157
/// the [`Stream`] type must be [`Unpin`]. If you want to use `next` with a
158158
/// [`!Unpin`](Unpin) stream, you'll first have to pin the stream. This can
159-
/// be done by boxing the stream using [`Box::pinned`] or
159+
/// be done by boxing the stream using [`Box::pin`] or
160160
/// pinning it to the stack using the `pin_mut!` macro from the `pin_utils`
161161
/// crate.
162162
///
@@ -188,7 +188,7 @@ pub trait StreamExt: Stream {
188188
/// Note that because `into_future` moves the stream, the [`Stream`] type
189189
/// must be [`Unpin`]. If you want to use `into_future` with a
190190
/// [`!Unpin`](Unpin) stream, you'll first have to pin the stream. This can
191-
/// be done by boxing the stream using [`Box::pinned`] or
191+
/// be done by boxing the stream using [`Box::pin`] or
192192
/// pinning it to the stack using the `pin_mut!` macro from the `pin_utils`
193193
/// crate.
194194
///

futures-util/src/try_stream/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ pub trait TryStreamExt: TryStream {
603603
///
604604
/// Note that because `into_async_read` moves the stream, the [`Stream`] type must be
605605
/// [`Unpin`]. If you want to use `into_async_read` with a [`!Unpin`](Unpin) stream, you'll
606-
/// first have to pin the stream. This can be done by boxing the stream using [`Box::pinned`]
606+
/// first have to pin the stream. This can be done by boxing the stream using [`Box::pin`]
607607
/// or pinning it to the stack using the `pin_mut!` macro from the `pin_utils` crate.
608608
///
609609
/// # Examples

0 commit comments

Comments
 (0)