diff options
| author | Matthias Einwag <matthias.einwag@live.com> | 2019-02-05 01:14:09 -0800 |
|---|---|---|
| committer | Matthias Einwag <matthias.einwag@live.com> | 2019-02-05 01:14:09 -0800 |
| commit | e1ec81459da4ba8e0633d90ddf440522a1587f35 (patch) | |
| tree | 5a58aa3a9848468c5cb57ff184e17e5260acf071 /src/libcore/future | |
| parent | f005e1c5d72c775bbb4370e9d8031fbc74efe4eb (diff) | |
| download | rust-e1ec81459da4ba8e0633d90ddf440522a1587f35.tar.gz rust-e1ec81459da4ba8e0633d90ddf440522a1587f35.zip | |
Apply more review suggestions
Diffstat (limited to 'src/libcore/future')
| -rw-r--r-- | src/libcore/future/future.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs index c4004524542..470143d797a 100644 --- a/src/libcore/future/future.rs +++ b/src/libcore/future/future.rs @@ -19,7 +19,8 @@ use task::{Poll, Waker}; /// final value. This method does not block if the value is not ready. Instead, /// the current task is scheduled to be woken up when it's possible to make /// further progress by `poll`ing again. The wake up is performed using -/// `cx.waker()`, a handle for waking up the current task. +/// the `waker` argument of the `poll()` method, which is a handle for waking +/// up the current task. /// /// When using a future, you generally won't call `poll` directly, but instead /// `await!` the value. @@ -78,8 +79,9 @@ pub trait Future { /// /// Once a future has completed (returned `Ready` from `poll`), /// then any future calls to `poll` may panic, block forever, or otherwise - /// cause bad behavior. The `Future` trait itself provides no guarantees - /// about the behavior of `poll` after a future has completed. + /// cause any kind of bad behavior expect causing memory unsafety. + /// The `Future` trait itself provides no guarantees about the behavior + /// of `poll` after a future has completed. /// /// [`Poll::Pending`]: ../task/enum.Poll.html#variant.Pending /// [`Poll::Ready(val)`]: ../task/enum.Poll.html#variant.Ready |
