about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2016-03-31 13:13:53 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2016-03-31 13:14:25 +0100
commite72c8fb754658b5d0cfcefbd1443d9d0911f244e (patch)
tree9b372d13245eeb846981b5778b1006eed3ba6380 /src/libcore/sync
parent30a3849f228833f9dc280120126d16aef3a292ba (diff)
downloadrust-e72c8fb754658b5d0cfcefbd1443d9d0911f244e.tar.gz
rust-e72c8fb754658b5d0cfcefbd1443d9d0911f244e.zip
Fix formatting in the documentation for AtomicIsize::compare_exchange_weak
Diffstat (limited to 'src/libcore/sync')
-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 7ae129eaf48..d2e98a795d9 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -695,7 +695,7 @@ impl AtomicIsize {
         unsafe { atomic_compare_exchange(self.v.get(), current, new, success, failure) }
     }
 
-    /// Stores a value into the `isize if the current value is the same as the `current` value.
+    /// Stores a value into the `isize` if the current value is the same as the `current` value.
     ///
     /// Unlike `compare_exchange`, this function is allowed to spuriously fail even when the
     /// comparison succeeds, which can result in more efficient code on some platforms. The