diff options
author | Oleg Nosov <olegnosov1@gmail.com> | 2020-01-24 20:31:13 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2020-01-24 09:31:13 -0800 |
commit | f9ddb93604a830d106475bd4c4cae436fafcc0da (patch) | |
tree | 6f200680e68b290794ef0512dcb031ef6d81c5ea /tokio/src/future | |
parent | a70f7203a46d471345128832987017612d8e4585 (diff) |
docs: use third form in API docs (#2027)
Diffstat (limited to 'tokio/src/future')
-rw-r--r-- | tokio/src/future/maybe_done.rs | 2 | ||||
-rw-r--r-- | tokio/src/future/ready.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/future/maybe_done.rs b/tokio/src/future/maybe_done.rs index 94b829f2..e93af521 100644 --- a/tokio/src/future/maybe_done.rs +++ b/tokio/src/future/maybe_done.rs @@ -40,7 +40,7 @@ impl<Fut: Future> MaybeDone<Fut> { } } - /// Attempt to take the output of a `MaybeDone` without driving it + /// Attempts to take the output of a `MaybeDone` without driving it /// towards completion. #[inline] pub fn take_output(self: Pin<&mut Self>) -> Option<Fut::Output> { diff --git a/tokio/src/future/ready.rs b/tokio/src/future/ready.rs index ba5d4804..d74f999e 100644 --- a/tokio/src/future/ready.rs +++ b/tokio/src/future/ready.rs @@ -21,7 +21,7 @@ impl<T> Future for Ready<T> { } } -/// Create a future that is immediately ready with a success value. +/// Creates a future that is immediately ready with a success value. pub(crate) fn ok<T, E>(t: T) -> Ready<Result<T, E>> { Ready(Some(Ok(t))) } |