We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01bf220 commit 49a5d9cCopy full SHA for 49a5d9c
library/std/src/sync/barrier.rs
@@ -65,11 +65,9 @@ impl fmt::Debug for Barrier {
65
impl Barrier {
66
/// Creates a new barrier that can block a given number of threads.
67
///
68
- /// A barrier will block `n`-1 threads which call [`wait()`] and then wake
+ /// A barrier will block `n-1` (saturating) threads which call [`wait()`] and then wake
69
/// up all threads at once when the `n`th thread calls [`wait()`].
70
71
- /// If `n` is 0, the barrier acts the same as `n` is 1.
72
- ///
73
/// [`wait()`]: Barrier::wait
74
75
/// # Examples
0 commit comments