Skip to content

Commit 64eb779

Browse files
taiki-eNemo157
authored andcommitted
Replace "combinator" with "function"/"method"
1 parent 7444716 commit 64eb779

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+98
-102
lines changed

futures-util/src/future/catch_unwind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::pin::Pin;
66
use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe};
77
use std::prelude::v1::*;
88

9-
/// Future for the [`catch_unwind`](super::FutureExt::catch_unwind) combinator.
9+
/// Future for the [`catch_unwind`](super::FutureExt::catch_unwind) method.
1010
#[derive(Debug)]
1111
#[must_use = "futures do nothing unless polled"]
1212
pub struct CatchUnwind<Fut> where Fut: Future {

futures-util/src/future/disabled/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use futures_core::task;
33

44
use either::Either;
55

6-
/// Future for the [`select`](super::FutureExt::select) combinator.
6+
/// Future for the [`select`](super::FutureExt::select) method.
77
#[must_use = "futures do nothing unless polled"]
88
#[derive(Debug)]
99
pub struct Select<A, B> {

futures-util/src/future/disabled/select_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::prelude::v1::*;
77
use futures_core::{Future, IntoFuture, Poll, Async};
88
use futures_core::task;
99

10-
/// Future for the [`select_all`] combinator.
10+
/// Future for the [`select_all`] function.
1111
#[derive(Debug)]
1212
#[must_use = "futures do nothing unless polled"]
1313
pub struct SelectAll<A> where A: Future {

futures-util/src/future/disabled/select_ok.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::prelude::v1::*;
77
use futures_core::{Future, IntoFuture, Poll, Async};
88
use futures_core::task;
99

10-
/// Future for the [`select_ok`] combinator.
10+
/// Future for the [`select_ok`] function.
1111
#[derive(Debug)]
1212
#[must_use = "futures do nothing unless polled"]
1313
pub struct SelectOk<A> where A: Future {

futures-util/src/future/empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use core::pin::Pin;
33
use futures_core::future::{Future, FusedFuture};
44
use futures_core::task::{Waker, Poll};
55

6-
/// Future for the [`empty`] combinator.
6+
/// Future for the [`empty`] function.
77
#[derive(Debug)]
88
#[must_use = "futures do nothing unless polled"]
99
pub struct Empty<T> {

futures-util/src/future/flatten.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use futures_core::future::{FusedFuture, Future};
55
use futures_core::task::{Waker, Poll};
66
use pin_utils::unsafe_pinned;
77

8-
/// Future for the [`flatten`](super::FutureExt::flatten) combinator.
8+
/// Future for the [`flatten`](super::FutureExt::flatten) method.
99
#[must_use = "futures do nothing unless polled"]
1010
pub struct Flatten<Fut>
1111
where Fut: Future,

futures-util/src/future/flatten_stream.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ use futures_core::future::Future;
44
use futures_core::stream::{FusedStream, Stream};
55
use futures_core::task::{Waker, Poll};
66

7-
/// Stream for the [`flatten_stream`](super::FutureExt::flatten_stream)
8-
/// combinator.
7+
/// Stream for the [`flatten_stream`](super::FutureExt::flatten_stream) method.
98
#[must_use = "streams do nothing unless polled"]
109
pub struct FlattenStream<Fut: Future> {
1110
state: State<Fut>

futures-util/src/future/fuse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use futures_core::future::{Future, FusedFuture};
33
use futures_core::task::{Waker, Poll};
44
use pin_utils::unsafe_pinned;
55

6-
/// Future for the [`fuse`](super::FutureExt::fuse) combinator.
6+
/// Future for the [`fuse`](super::FutureExt::fuse) method.
77
#[derive(Debug)]
88
#[must_use = "futures do nothing unless polled"]
99
pub struct Fuse<Fut: Future> {

futures-util/src/future/inspect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use futures_core::future::{FusedFuture, Future};
33
use futures_core::task::{Waker, Poll};
44
use pin_utils::{unsafe_pinned, unsafe_unpinned};
55

6-
/// Future for the [`inspect`](super::FutureExt::inspect) combinator.
6+
/// Future for the [`inspect`](super::FutureExt::inspect) method.
77
#[derive(Debug)]
88
#[must_use = "futures do nothing unless polled"]
99
pub struct Inspect<Fut, F> where Fut: Future {

futures-util/src/future/into_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use futures_core::stream::Stream;
44
use futures_core::task::{Waker, Poll};
55
use pin_utils::unsafe_pinned;
66

7-
/// Stream for the [`into_stream`](super::FutureExt::into_stream) combinator.
7+
/// Stream for the [`into_stream`](super::FutureExt::into_stream) method.
88
#[must_use = "futures do nothing unless polled"]
99
#[derive(Debug)]
1010
pub struct IntoStream<Fut: Future> {

0 commit comments

Comments
 (0)