File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3406,7 +3406,7 @@ macro_rules! atomic_int {
3406
3406
/// atomic types work with interior mutability. All modifications of an atomic change the value
3407
3407
/// through a shared reference, and can do so safely as long as they use atomic operations. Any
3408
3408
/// use of the returned raw pointer requires an `unsafe` block and still has to uphold the same
3409
- /// restriction: operations on it must be atomic .
3409
+ /// restriction: operations on it must not lead to data races .
3410
3410
///
3411
3411
/// # Examples
3412
3412
///
@@ -3420,7 +3420,7 @@ macro_rules! atomic_int {
3420
3420
///
3421
3421
#[ doc = concat!( "let atomic = " , stringify!( $atomic_type) , "::new(1);" ) ]
3422
3422
///
3423
- /// // SAFETY: Safe as long as `my_atomic_op` is atomic .
3423
+ /// // SAFETY: Safe as long as `my_atomic_op` does not lead to a data race .
3424
3424
/// unsafe {
3425
3425
/// my_atomic_op(atomic.as_ptr());
3426
3426
/// }
You can’t perform that action at this time.
0 commit comments