This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ pub trait LocalWake {
256
256
/// waker, it should override this method. By default, it clones the
257
257
/// [`Rc`] and calls [`wake`] on the clone.
258
258
///
259
- /// [`wake`]: Rc ::wake
259
+ /// [`wake`]: LocalWaker ::wake
260
260
#[ unstable( feature = "local_waker" , issue = "118959" ) ]
261
261
fn wake_by_ref ( self : & Rc < Self > ) {
262
262
self . clone ( ) . wake ( ) ;
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ impl fmt::Debug for Context<'_> {
269
269
/// #![feature(noop_waker)]
270
270
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
271
271
/// use std::future::Future;
272
- ///
272
+ ///
273
273
/// let local_waker = LocalWaker::noop();
274
274
/// let waker = Waker::noop();
275
275
///
@@ -347,7 +347,7 @@ impl<'a> ContextBuilder<'a> {
347
347
/// use std::task::{Waker, ContextBuilder};
348
348
/// use std::future::{poll_fn, Future};
349
349
/// use std::pin::pin;
350
- ///
350
+ ///
351
351
/// async fn with_waker<F>(f: F, waker: &Waker) -> F::Output
352
352
/// where
353
353
/// F: Future
@@ -365,7 +365,7 @@ impl<'a> ContextBuilder<'a> {
365
365
/// f.as_mut().poll(&mut cx)
366
366
/// }).await
367
367
/// }
368
- ///
368
+ ///
369
369
/// # async fn __() {
370
370
/// with_waker(async { /* ... */ }, &Waker::noop()).await;
371
371
/// # }
You can’t perform that action at this time.
0 commit comments