about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-09-20 18:37:05 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-09-20 18:37:05 +0200
commitaaddcdb0d097de1fee14be16479aeaeea41e8810 (patch)
tree2020e9a19c22fccc58cc06900806d74163c6ad17 /library/std
parentb534d9f6e1e2b3e77842c5ededa62f6bcfb2ea58 (diff)
downloadrust-aaddcdb0d097de1fee14be16479aeaeea41e8810.tar.gz
rust-aaddcdb0d097de1fee14be16479aeaeea41e8810.zip
Fix nits
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/sync/barrier.rs4
-rw-r--r--library/std/src/sync/once.rs3
2 files changed, 3 insertions, 4 deletions
diff --git a/library/std/src/sync/barrier.rs b/library/std/src/sync/barrier.rs
index 8d3e30dbd45..eab26b6c715 100644
--- a/library/std/src/sync/barrier.rs
+++ b/library/std/src/sync/barrier.rs
@@ -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.
diff --git a/library/std/src/sync/once.rs b/library/std/src/sync/once.rs
index ee8902bf764..de5ddf1daf2 100644
--- a/library/std/src/sync/once.rs
+++ b/library/std/src/sync/once.rs
@@ -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
 ///