about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-08-14 20:29:50 +0300
committerGitHub <noreply@github.com>2016-08-14 20:29:50 +0300
commit955458e346e4492325675b1bc87cb00a39f2d6a1 (patch)
tree9cbd003cd71d9cc76572c2e0f0b3df9d6e0ae3cd /src/libcore
parentb65ff08d4675c798cedc86d0df302ecba2740bfa (diff)
parent4b54dd7fd9832beaf2b182d1a9be46b2e9a83e7e (diff)
downloadrust-955458e346e4492325675b1bc87cb00a39f2d6a1.tar.gz
rust-955458e346e4492325675b1bc87cb00a39f2d6a1.zip
Rollup merge of #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`.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 2a7a0b62329..5701a89d8bc 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -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.
 //!
 //!