aboutsummaryrefslogtreecommitdiff
path: root/crates/stdx/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/stdx/src')
-rw-r--r--crates/stdx/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs
index 5d60f0219..273b0f55b 100644
--- a/crates/stdx/src/lib.rs
+++ b/crates/stdx/src/lib.rs
@@ -141,7 +141,7 @@ pub struct RacyFlag(AtomicUsize);
141 141
142impl RacyFlag { 142impl RacyFlag {
143 pub const fn new() -> RacyFlag { 143 pub const fn new() -> RacyFlag {
144 RacyFlag(AtomicUsize::new(0)) 144 RacyFlag(AtomicUsize::new(!0))
145 } 145 }
146 146
147 pub fn get(&self, init: impl FnMut() -> bool) -> bool { 147 pub fn get(&self, init: impl FnMut() -> bool) -> bool {