Skip to content

Commit 15be59d

Browse files
authored
Rollup merge of #70730 - yoshuawuyts:fix-wake-docs-link, r=Dylan-DPC
Fix link in task::Wake docs `task::Wake` was introduced in #68700. While I was browsing the docs I noticed a link to `sync::Arc` wasn't resolving correctly. This patch fixes that. Thanks! ## Before ![Screenshot_2020-04-03 std task Wake - Rust](https://user-images.githubusercontent.com/2467194/78346384-466cb280-759f-11ea-97c8-aede186c674e.png) ## Proposed ![Screenshot_2020-04-03 alloc task Wake - Rust](https://user-images.githubusercontent.com/2467194/78349819-79657500-75a4-11ea-9282-16691ae2a5d4.png)
2 parents 53d786f + 3d17993 commit 15be59d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/liballoc/task.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ use crate::sync::Arc;
1212
/// to the tasks that are executed on that executor.
1313
///
1414
/// This trait is a memory-safe and ergonomic alternative to constructing a
15-
/// [`RawWaker`]. It supports the common executor design in which the data
16-
/// used to wake up a task is stored in an [`Arc`]. Some executors (especially
15+
/// [`RawWaker`]. It supports the common executor design in which the data used
16+
/// to wake up a task is stored in an [`Arc`][arc]. Some executors (especially
1717
/// those for embedded systems) cannot use this API, which is why [`RawWaker`]
1818
/// exists as an alternative for those systems.
19+
///
20+
/// [arc]: ../../std/sync/struct.Arc.html
1921
#[unstable(feature = "wake_trait", issue = "69912")]
2022
pub trait Wake {
2123
/// Wake this task.

0 commit comments

Comments
 (0)