From d4bcc4ae6dcd6c01f05edf1888d4696e61a40288 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Wed, 3 Aug 2022 22:07:50 -0700 Subject: [PATCH] Remove self-referential intra-doc links. --- library/core/src/task/wake.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs index 1aeb30c667e..60ecc9c0bdb 100644 --- a/library/core/src/task/wake.rs +++ b/library/core/src/task/wake.rs @@ -184,7 +184,7 @@ pub struct Context<'a> { } impl<'a> Context<'a> { - /// Create a new [`Context`] from a [`&Waker`](Waker). + /// Create a new `Context` from a [`&Waker`](Waker). #[stable(feature = "futures_api", since = "1.36.0")] #[must_use] #[inline] @@ -214,7 +214,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { /// This handle encapsulates a [`RawWaker`] instance, which defines the /// executor-specific wakeup behavior. /// -/// The typical life of a [`Waker`] is that it is constructed by an executor, wrapped in a +/// The typical life of a `Waker` is that it is constructed by an executor, wrapped in a /// [`Context`], then passed to [`Future::poll()`]. Then, if the future chooses to return /// [`Poll::Pending`], it must also store the waker somehow and call [`Waker::wake()`] when /// the future should be polled again. @@ -245,7 +245,7 @@ impl Waker { /// As long as the executor keeps running and the task is not finished, it is /// guaranteed that each invocation of [`wake()`](Self::wake) (or /// [`wake_by_ref()`](Self::wake_by_ref)) will be followed by at least one - /// [`poll()`] of the task to which this [`Waker`] belongs. This makes + /// [`poll()`] of the task to which this `Waker` belongs. This makes /// it possible to temporarily yield to other tasks while running potentially /// unbounded processing loops. /// @@ -289,7 +289,7 @@ pub fn wake_by_ref(&self) { unsafe { (self.waker.vtable.wake_by_ref)(self.waker.data) } } - /// Returns `true` if this `Waker` and another [`Waker`] would awake the same task. + /// Returns `true` if this `Waker` and another `Waker` would awake the same task. /// /// This function works on a best-effort basis, and may return false even /// when the `Waker`s would awaken the same task. However, if this function