File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ pub trait LocalWake {
256256 /// waker, it should override this method. By default, it clones the
257257 /// [`Rc`] and calls [`wake`] on the clone.
258258 ///
259- /// [`wake`]: Rc ::wake
259+ /// [`wake`]: LocalWaker ::wake
260260 #[ unstable( feature = "local_waker" , issue = "118959" ) ]
261261 fn wake_by_ref ( self : & Rc < Self > ) {
262262 self . clone ( ) . wake ( ) ;
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ impl fmt::Debug for Context<'_> {
269269/// #![feature(noop_waker)]
270270/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
271271/// use std::future::Future;
272- ///
272+ ///
273273/// let local_waker = LocalWaker::noop();
274274/// let waker = Waker::noop();
275275///
@@ -347,7 +347,7 @@ impl<'a> ContextBuilder<'a> {
347347/// use std::task::{Waker, ContextBuilder};
348348/// use std::future::{poll_fn, Future};
349349/// use std::pin::pin;
350- ///
350+ ///
351351/// async fn with_waker<F>(f: F, waker: &Waker) -> F::Output
352352/// where
353353/// F: Future
@@ -365,7 +365,7 @@ impl<'a> ContextBuilder<'a> {
365365/// f.as_mut().poll(&mut cx)
366366/// }).await
367367/// }
368- ///
368+ ///
369369/// # async fn __() {
370370/// with_waker(async { /* ... */ }, &Waker::noop()).await;
371371/// # }
You can’t perform that action at this time.
0 commit comments