Skip to content

Commit aaddcdb

Browse files
committed
Fix nits
1 parent b534d9f commit aaddcdb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

library/std/src/sync/barrier.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ impl fmt::Debug for BarrierWaitResult {
150150
}
151151

152152
impl BarrierWaitResult {
153-
/// Returns `true` if this thread from [`Barrier::wait()`] is the
154-
/// "leader thread".
153+
/// Returns `true` if this thread is the "leader thread" for the call to
154+
/// [`Barrier::wait()`].
155155
///
156156
/// Only one thread will have `true` returned from their result, all other
157157
/// threads will have `false` returned.

library/std/src/sync/once.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ use crate::thread::{self, Thread};
9595

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

0 commit comments

Comments
 (0)