]> git.lizzy.rs Git - rust.git/commitdiff
Fix formatting in the documentation for AtomicIsize::compare_exchange_weak
authorAmanieu d'Antras <amanieu@gmail.com>
Thu, 31 Mar 2016 12:13:53 +0000 (13:13 +0100)
committerAmanieu d'Antras <amanieu@gmail.com>
Thu, 31 Mar 2016 12:14:25 +0000 (13:14 +0100)
src/libcore/sync/atomic.rs

index 7ae129eaf487875e9c0532c50520b2f726f2c0ab..d2e98a795d935cb41f5250a1fb7503321c5c59b8 100644 (file)
@@ -695,7 +695,7 @@ pub fn compare_exchange(&self,
         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