Skip to content

Commit 9c00d0b

Browse files
committed
Rename: extend_with_stream => stream_extend
1 parent a5a6dc2 commit 9c00d0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/stream/extend.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::stream::{IntoStream, Stream};
2121
///
2222
/// let mut v: Vec<usize> = vec![1, 2];
2323
/// let s = stream::repeat(3usize).take(3);
24-
/// v.extend_with_stream(s).await;
24+
/// v.stream_extend(s).await;
2525
///
2626
/// assert_eq!(v, vec![1, 2, 3, 3, 3]);
2727
/// #
@@ -30,14 +30,14 @@ use crate::stream::{IntoStream, Stream};
3030
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
3131
pub trait Extend<A> {
3232
/// Extends a collection with the contents of a stream.
33-
fn extend_with_stream<'a, T: IntoStream<Item = A> + 'a>(
33+
fn stream_extend<'a, T: IntoStream<Item = A> + 'a>(
3434
&'a mut self,
3535
stream: T,
3636
) -> Pin<Box<dyn Future<Output = ()> + 'a>>;
3737
}
3838

3939
impl Extend<()> for () {
40-
fn extend_with_stream<'a, T: IntoStream<Item = ()> + 'a>(
40+
fn stream_extend<'a, T: IntoStream<Item = ()> + 'a>(
4141
&'a mut self,
4242
stream: T,
4343
) -> Pin<Box<dyn Future<Output = ()> + 'a>> {

src/vec/extend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::future::Future;
44
use crate::stream::{Extend, IntoStream, Stream};
55

66
impl<T> Extend<T> for Vec<T> {
7-
fn extend_with_stream<'a, S: IntoStream<Item = T> + 'a>(
7+
fn stream_extend<'a, S: IntoStream<Item = T> + 'a>(
88
&'a mut self,
99
stream: S,
1010
) -> Pin<Box<dyn Future<Output = ()> + 'a>> {

0 commit comments

Comments
 (0)