Skip to content

Commit d4bcc4a

Browse files
committed
Remove self-referential intra-doc links.
1 parent 1b87306 commit d4bcc4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/task/wake.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ pub struct Context<'a> {
184184
}
185185

186186
impl<'a> Context<'a> {
187-
/// Create a new [`Context`] from a [`&Waker`](Waker).
187+
/// Create a new `Context` from a [`&Waker`](Waker).
188188
#[stable(feature = "futures_api", since = "1.36.0")]
189189
#[must_use]
190190
#[inline]
@@ -214,7 +214,7 @@ impl fmt::Debug for Context<'_> {
214214
/// This handle encapsulates a [`RawWaker`] instance, which defines the
215215
/// executor-specific wakeup behavior.
216216
///
217-
/// The typical life of a [`Waker`] is that it is constructed by an executor, wrapped in a
217+
/// The typical life of a `Waker` is that it is constructed by an executor, wrapped in a
218218
/// [`Context`], then passed to [`Future::poll()`]. Then, if the future chooses to return
219219
/// [`Poll::Pending`], it must also store the waker somehow and call [`Waker::wake()`] when
220220
/// the future should be polled again.
@@ -245,7 +245,7 @@ impl Waker {
245245
/// As long as the executor keeps running and the task is not finished, it is
246246
/// guaranteed that each invocation of [`wake()`](Self::wake) (or
247247
/// [`wake_by_ref()`](Self::wake_by_ref)) will be followed by at least one
248-
/// [`poll()`] of the task to which this [`Waker`] belongs. This makes
248+
/// [`poll()`] of the task to which this `Waker` belongs. This makes
249249
/// it possible to temporarily yield to other tasks while running potentially
250250
/// unbounded processing loops.
251251
///
@@ -289,7 +289,7 @@ impl Waker {
289289
unsafe { (self.waker.vtable.wake_by_ref)(self.waker.data) }
290290
}
291291

292-
/// Returns `true` if this `Waker` and another [`Waker`] would awake the same task.
292+
/// Returns `true` if this `Waker` and another `Waker` would awake the same task.
293293
///
294294
/// This function works on a best-effort basis, and may return false even
295295
/// when the `Waker`s would awaken the same task. However, if this function

0 commit comments

Comments
 (0)