Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Sep 20, 2020
1 parent b534d9f commit aaddcdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sync/barrier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ impl fmt::Debug for BarrierWaitResult {
}

impl BarrierWaitResult {
/// Returns `true` if this thread from [`Barrier::wait()`] is the
/// "leader thread".
/// Returns `true` if this thread is the "leader thread" for the call to
/// [`Barrier::wait()`].
///
/// Only one thread will have `true` returned from their result, all other
/// threads will have `false` returned.
Expand Down
3 changes: 1 addition & 2 deletions library/std/src/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ use crate::thread::{self, Thread};

/// A synchronization primitive which can be used to run a one-time global
/// initialization. Useful for one-time initialization for FFI or related
/// functionality. This type can only be constructed with the [`Once::new()`]
/// constructor.
/// functionality. This type can only be constructed with [`Once::new()`].
///
/// # Examples
///
Expand Down

0 comments on commit aaddcdb

Please sign in to comment.