about summary refs log tree commit diff
path: root/library/std/src/sync
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-09-18 12:04:49 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-09-18 12:32:23 +0200
commitb534d9f6e1e2b3e77842c5ededa62f6bcfb2ea58 (patch)
tree11f1f0e6ee2ee50f85044810d413d2a4e66f1bf6 /library/std/src/sync
parentbffd2111f7b033902e60889da5d3fa7a033a7d5e (diff)
downloadrust-b534d9f6e1e2b3e77842c5ededa62f6bcfb2ea58.tar.gz
rust-b534d9f6e1e2b3e77842c5ededa62f6bcfb2ea58.zip
Fix broken link
Diffstat (limited to 'library/std/src/sync')
-rw-r--r--library/std/src/sync/barrier.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sync/barrier.rs b/library/std/src/sync/barrier.rs
index b8b4baf14b4..8d3e30dbd45 100644
--- a/library/std/src/sync/barrier.rs
+++ b/library/std/src/sync/barrier.rs
@@ -94,9 +94,9 @@ impl Barrier {
     /// be used continuously.
     ///
     /// A single (arbitrary) thread will receive a [`BarrierWaitResult`] that
-    /// returns `true` from [`is_leader`] when returning from this function, and
-    /// all other threads will receive a result that will return `false` from
-    /// [`BarrierWaitResult::is_leader`].
+    /// returns `true` from [`BarrierWaitResult::is_leader()`] when returning
+    /// from this function, and all other threads will receive a result that
+    /// will return `false` from [`BarrierWaitResult::is_leader()`].
     ///
     /// # Examples
     ///