Skip to content

Commit e72c8fb

Browse files
committed
Fix formatting in the documentation for AtomicIsize::compare_exchange_weak
1 parent 30a3849 commit e72c8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ impl AtomicIsize {
695695
unsafe { atomic_compare_exchange(self.v.get(), current, new, success, failure) }
696696
}
697697

698-
/// Stores a value into the `isize if the current value is the same as the `current` value.
698+
/// Stores a value into the `isize` if the current value is the same as the `current` value.
699699
///
700700
/// Unlike `compare_exchange`, this function is allowed to spuriously fail even when the
701701
/// comparison succeeds, which can result in more efficient code on some platforms. The

0 commit comments

Comments
 (0)