about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorathulappadan <a4athulappadan@gmail.com>2016-09-11 17:00:09 +0530
committerathulappadan <a4athulappadan@gmail.com>2016-09-11 17:00:09 +0530
commit49e77dbf25ed6526fb5d37c32e55797fb04522f0 (patch)
treec876b159c4833fe3a5f2c91dadb2194d77bfc057 /src/libcore/sync
parent1fca1ab0e7be574022b2d229f0a6ad9bd580d1bf (diff)
downloadrust-49e77dbf25ed6526fb5d37c32e55797fb04522f0.tar.gz
rust-49e77dbf25ed6526fb5d37c32e55797fb04522f0.zip
Documentation of what does for each type
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 75ddd2021a8..a5efda702df 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -95,6 +95,7 @@ pub struct AtomicBool {
 #[cfg(target_has_atomic = "8")]
 #[stable(feature = "rust1", since = "1.0.0")]
 impl Default for AtomicBool {
+    /// Creates an `AtomicBool` initialised as false.
     fn default() -> Self {
         Self::new(false)
     }
@@ -117,6 +118,7 @@ pub struct AtomicPtr<T> {
 #[cfg(target_has_atomic = "ptr")]
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T> Default for AtomicPtr<T> {
+    /// Creates an `AtomicPtr<T>` with an initial mutable null pointer.
     fn default() -> AtomicPtr<T> {
         AtomicPtr::new(::ptr::null_mut())
     }