Fix nits
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user