]> git.lizzy.rs Git - rust.git/commitdiff
Apply suggestions from code review
authorPoliorcetics <poliorcetics@users.noreply.github.com>
Fri, 18 Sep 2020 07:52:35 +0000 (09:52 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 07:52:35 +0000 (09:52 +0200)
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
library/core/src/future/pending.rs
library/core/src/future/poll_fn.rs
library/core/src/future/ready.rs

index 388b9e7bdb0e733a5897bc1dcd2c485b896e1a29..ab162638a1cfe24d2fb257bd0fe8850883c7e3f2 100644 (file)
@@ -7,7 +7,7 @@
 /// Creates a future which never resolves, representing a computation that never
 /// finishes.
 ///
-/// This `struct` is created by the [`pending`] function. See its
+/// This `struct` is created by [`pending()`]. See its
 /// documentation for more.
 #[stable(feature = "future_readiness_fns", since = "1.48.0")]
 #[must_use = "futures do nothing unless you `.await` or poll them"]
index 3fe7eb88d0ff381e24a4eefae3d512b5389bf7d1..f302cda09e721166e2d6929402d46e621aa5db4c 100644 (file)
@@ -33,7 +33,7 @@ pub fn poll_fn<T, F>(f: F) -> PollFn<F>
 
 /// A Future that wraps a function returning `Poll`.
 ///
-/// This `struct` is created by the [`poll_fn`] function. See its
+/// This `struct` is created by [`poll_fn()`]. See its
 /// documentation for more.
 #[must_use = "futures do nothing unless you `.await` or poll them"]
 #[unstable(feature = "future_poll_fn", issue = "72302")]
index ad93157c3454db616a262b17428e24eb7af21bb3..e98f5c570bf3cb70a5e5ce814acab0146817d917 100644 (file)
@@ -4,7 +4,7 @@
 
 /// Creates a future that is immediately ready with a value.
 ///
-/// This `struct` is created by the [`ready`] function. See its
+/// This `struct` is created by [`ready()`]. See its
 /// documentation for more.
 #[stable(feature = "future_readiness_fns", since = "1.48.0")]
 #[derive(Debug, Clone)]