@@ -35,9 +35,9 @@ core). In traditional programs, this can only occur when a signal
3535handler is registered. Consider the following code:
3636
3737``` rust
38- #use std :: sync :: atomic :: {AtomicBool , AtomicUsize };
39- #use std :: sync :: atomic :: {ATOMIC_BOOL_INIT , ATOMIC_USIZE_INIT };
40- #use std :: sync :: atomic :: Ordering ;
38+ # use std :: sync :: atomic :: {AtomicBool , AtomicUsize };
39+ # use std :: sync :: atomic :: {ATOMIC_BOOL_INIT , ATOMIC_USIZE_INIT };
40+ # use std :: sync :: atomic :: Ordering ;
4141static IMPORTANT_VARIABLE : AtomicUsize = ATOMIC_USIZE_INIT ;
4242static IS_READY : AtomicBool = ATOMIC_BOOL_INIT ;
4343
@@ -65,9 +65,9 @@ Using a `compiler_barrier`, we can remedy this situation:
6565
6666``` rust
6767#![feature(compiler_barriers)]
68- #use std :: sync :: atomic :: {AtomicBool , AtomicUsize };
69- #use std :: sync :: atomic :: {ATOMIC_BOOL_INIT , ATOMIC_USIZE_INIT };
70- #use std :: sync :: atomic :: Ordering ;
68+ # use std :: sync :: atomic :: {AtomicBool , AtomicUsize };
69+ # use std :: sync :: atomic :: {ATOMIC_BOOL_INIT , ATOMIC_USIZE_INIT };
70+ # use std :: sync :: atomic :: Ordering ;
7171use std :: sync :: atomic :: compiler_barrier;
7272
7373static IMPORTANT_VARIABLE : AtomicUsize = ATOMIC_USIZE_INIT ;
0 commit comments