Skip to content

Commit

Permalink
Update comment based on suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
phungleson committed Oct 23, 2018
1 parent a70ef6a commit 3539132
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcore/task/wake.rs
Expand Up @@ -190,8 +190,9 @@ impl LocalWaker {
impl From<LocalWaker> for Waker {
/// Converts a `LocalWaker` into a `Waker`.
///
/// This conversion forgets local waker and allocates a new waker with
/// the same inner.
/// This conversion turns a `!Sync` `LocalWaker` into a `Sync` `Waker`, allowing a wakeup
/// object to be sent to another thread, but giving up its ability to do specialized
/// thread-local wakeup behavior.
#[inline]
fn from(local_waker: LocalWaker) -> Self {
local_waker.0
Expand Down

0 comments on commit 3539132

Please sign in to comment.