Skip to content

Commit c4517f4

Browse files
authored
Rollup merge of rust-lang#35588 - Antti:fix-atomics-docs, r=alexcrichton
Use an existing constant name as an example. By reading atomics documentation I tried to use `INIT_ATOMIC_BOOL`, which I couldn't find. Turns out it was renamed to `ATOMIC_BOOL_INIT`.
2 parents 195558f + 4b54dd7 commit c4517f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/sync/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//! atomically-reference-counted shared pointer).
3333
//!
3434
//! Most atomic types may be stored in static variables, initialized using
35-
//! the provided static initializers like `INIT_ATOMIC_BOOL`. Atomic statics
35+
//! the provided static initializers like `ATOMIC_BOOL_INIT`. Atomic statics
3636
//! are often used for lazy global initialization.
3737
//!
3838
//!

0 commit comments

Comments
 (0)