Skip to content

Commit 3539132

Browse files
committed
Update comment based on suggestion.
1 parent a70ef6a commit 3539132

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/task/wake.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ impl LocalWaker {
190190
impl From<LocalWaker> for Waker {
191191
/// Converts a `LocalWaker` into a `Waker`.
192192
///
193-
/// This conversion forgets local waker and allocates a new waker with
194-
/// the same inner.
193+
/// This conversion turns a `!Sync` `LocalWaker` into a `Sync` `Waker`, allowing a wakeup
194+
/// object to be sent to another thread, but giving up its ability to do specialized
195+
/// thread-local wakeup behavior.
195196
#[inline]
196197
fn from(local_waker: LocalWaker) -> Self {
197198
local_waker.0

0 commit comments

Comments
 (0)