We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6df67a commit 3fa28ccCopy full SHA for 3fa28cc
src/libcore/sync/atomic.rs
@@ -1171,6 +1171,8 @@ macro_rules! atomic_int {
1171
1172
/// Add to the current value, returning the previous value.
1173
///
1174
+ /// This operation wraps around on overflow.
1175
+ ///
1176
/// # Examples
1177
1178
/// ```
@@ -1188,6 +1190,8 @@ macro_rules! atomic_int {
1188
1190
1189
1191
/// Subtract from the current value, returning the previous value.
1192
1193
1194
1195
1196
1197
0 commit comments