diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2024-03-19 14:54:54 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2024-03-19 15:27:11 +0100 |
| commit | a2c74b8445001b7f6cfd1e333b29f21637ab2282 (patch) | |
| tree | de27674575e7de132c8966cf438f123ce9059a0d /library/alloc/src | |
| parent | f296c162d8c6f84bcfee99c152d4fd63aaef3e38 (diff) | |
| download | rust-a2c74b8445001b7f6cfd1e333b29f21637ab2282.tar.gz rust-a2c74b8445001b7f6cfd1e333b29f21637ab2282.zip | |
SeqCst->Relaxed in doc examples.
SeqCst is unnecessary here.
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 80f0f2acc99..7e3e2fb38b1 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -233,7 +233,7 @@ macro_rules! acquire { /// let val = Arc::clone(&val); /// /// thread::spawn(move || { -/// let v = val.fetch_add(1, Ordering::SeqCst); +/// let v = val.fetch_add(1, Ordering::Relaxed); /// println!("{v:?}"); /// }); /// } |
