This commit is contained in:
Alexis Bourget
2020-09-20 18:37:05 +02:00
parent b534d9f6e1
commit aaddcdb0d0
2 changed files with 3 additions and 4 deletions

View File

@@ -150,8 +150,8 @@ impl fmt::Debug for BarrierWaitResult {
} }
impl BarrierWaitResult { impl BarrierWaitResult {
/// Returns `true` if this thread from [`Barrier::wait()`] is the /// Returns `true` if this thread is the "leader thread" for the call to
/// "leader thread". /// [`Barrier::wait()`].
/// ///
/// Only one thread will have `true` returned from their result, all other /// Only one thread will have `true` returned from their result, all other
/// threads will have `false` returned. /// threads will have `false` returned.

View File

@@ -95,8 +95,7 @@ use crate::thread::{self, Thread};
/// A synchronization primitive which can be used to run a one-time global /// A synchronization primitive which can be used to run a one-time global
/// initialization. Useful for one-time initialization for FFI or related /// initialization. Useful for one-time initialization for FFI or related
/// functionality. This type can only be constructed with the [`Once::new()`] /// functionality. This type can only be constructed with [`Once::new()`].
/// constructor.
/// ///
/// # Examples /// # Examples
/// ///