about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 743e3c41170..cde98a67036 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -1171,6 +1171,8 @@ macro_rules! atomic_int {
 
             /// Add to the current value, returning the previous value.
             ///
+            /// This operation wraps around on overflow.
+            ///
             /// # Examples
             ///
             /// ```
@@ -1188,6 +1190,8 @@ macro_rules! atomic_int {
 
             /// Subtract from the current value, returning the previous value.
             ///
+            /// This operation wraps around on overflow.
+            ///
             /// # Examples
             ///
             /// ```