Skip to content

Commit 49a5d9c

Browse files
authored
Update library/std/src/sync/barrier.rs
1 parent 01bf220 commit 49a5d9c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/sync/barrier.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ impl fmt::Debug for Barrier {
6565
impl Barrier {
6666
/// Creates a new barrier that can block a given number of threads.
6767
///
68-
/// A barrier will block `n`-1 threads which call [`wait()`] and then wake
68+
/// A barrier will block `n-1` (saturating) threads which call [`wait()`] and then wake
6969
/// up all threads at once when the `n`th thread calls [`wait()`].
7070
///
71-
/// If `n` is 0, the barrier acts the same as `n` is 1.
72-
///
7371
/// [`wait()`]: Barrier::wait
7472
///
7573
/// # Examples

0 commit comments

Comments
 (0)