diff --git a/library/std/src/sync/barrier.rs b/library/std/src/sync/barrier.rs index c2c18889dde7..6a5cc9b69f82 100644 --- a/library/std/src/sync/barrier.rs +++ b/library/std/src/sync/barrier.rs @@ -65,8 +65,8 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { impl Barrier { /// Creates a new barrier that can block a given number of threads. /// - /// A barrier will block `n`-1 threads which call [`wait()`] and then wake - /// up all threads at once when the `n`th thread calls [`wait()`]. + /// A barrier will block all threads which call [`wait()`] until the `n`th thread calls [`wait()`], + /// and then wake up all threads at once. /// /// [`wait()`]: Barrier::wait ///