Skip to content

Commit

Permalink
Rollup merge of rust-lang#35588 - Antti:fix-atomics-docs, r=alexcrichton
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
eddyb authored Aug 14, 2016
2 parents 195558f + 4b54dd7 commit c4517f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//! atomically-reference-counted shared pointer).
//!
//! Most atomic types may be stored in static variables, initialized using
//! the provided static initializers like `INIT_ATOMIC_BOOL`. Atomic statics
//! the provided static initializers like `ATOMIC_BOOL_INIT`. Atomic statics
//! are often used for lazy global initialization.
//!
//!
Expand Down

0 comments on commit c4517f4

Please sign in to comment.