@@ -1245,8 +1245,8 @@ impl AtomicBool {
1245
1245
/// Returning an `*mut` pointer from a shared reference to this atomic is safe because the
1246
1246
/// atomic types work with interior mutability. All modifications of an atomic change the value
1247
1247
/// through a shared reference, and can do so safely as long as they use atomic operations. Any
1248
- /// use of the returned raw pointer requires an `unsafe` block and still has to uphold the same
1249
- /// restriction in [Memory model for atomic accesses ].
1248
+ /// use of the returned raw pointer requires an `unsafe` block and still has to uphold the
1249
+ /// requirements of the [memory model].
1250
1250
///
1251
1251
/// # Examples
1252
1252
///
@@ -1265,7 +1265,7 @@ impl AtomicBool {
1265
1265
/// # }
1266
1266
/// ```
1267
1267
///
1268
- /// [Memory model for atomic accesses ]: self#memory-model-for-atomic-accesses
1268
+ /// [memory model]: self#memory-model-for-atomic-accesses
1269
1269
#[ inline]
1270
1270
#[ stable( feature = "atomic_as_ptr" , since = "1.70.0" ) ]
1271
1271
#[ rustc_const_stable( feature = "atomic_as_ptr" , since = "1.70.0" ) ]
@@ -2489,8 +2489,8 @@ impl<T> AtomicPtr<T> {
2489
2489
/// Returning an `*mut` pointer from a shared reference to this atomic is safe because the
2490
2490
/// atomic types work with interior mutability. All modifications of an atomic change the value
2491
2491
/// through a shared reference, and can do so safely as long as they use atomic operations. Any
2492
- /// use of the returned raw pointer requires an `unsafe` block and still has to uphold the same
2493
- /// restriction in [Memory model for atomic accesses ].
2492
+ /// use of the returned raw pointer requires an `unsafe` block and still has to uphold the
2493
+ /// requirements of the [memory model].
2494
2494
///
2495
2495
/// # Examples
2496
2496
///
@@ -2510,7 +2510,7 @@ impl<T> AtomicPtr<T> {
2510
2510
/// }
2511
2511
/// ```
2512
2512
///
2513
- /// [Memory model for atomic accesses ]: self#memory-model-for-atomic-accesses
2513
+ /// [memory model]: self#memory-model-for-atomic-accesses
2514
2514
#[ inline]
2515
2515
#[ stable( feature = "atomic_as_ptr" , since = "1.70.0" ) ]
2516
2516
#[ rustc_const_stable( feature = "atomic_as_ptr" , since = "1.70.0" ) ]
@@ -3623,8 +3623,8 @@ macro_rules! atomic_int {
3623
3623
/// Returning an `*mut` pointer from a shared reference to this atomic is safe because the
3624
3624
/// atomic types work with interior mutability. All modifications of an atomic change the value
3625
3625
/// through a shared reference, and can do so safely as long as they use atomic operations. Any
3626
- /// use of the returned raw pointer requires an `unsafe` block and still has to uphold the same
3627
- /// restriction in [Memory model for atomic accesses ].
3626
+ /// use of the returned raw pointer requires an `unsafe` block and still has to uphold the
3627
+ /// requirements of the [memory model].
3628
3628
///
3629
3629
/// # Examples
3630
3630
///
@@ -3645,7 +3645,7 @@ macro_rules! atomic_int {
3645
3645
/// # }
3646
3646
/// ```
3647
3647
///
3648
- /// [Memory model for atomic accesses ]: self#memory-model-for-atomic-accesses
3648
+ /// [memory model]: self#memory-model-for-atomic-accesses
3649
3649
#[ inline]
3650
3650
#[ stable( feature = "atomic_as_ptr" , since = "1.70.0" ) ]
3651
3651
#[ rustc_const_stable( feature = "atomic_as_ptr" , since = "1.70.0" ) ]
0 commit comments