@@ -922,13 +922,13 @@ impl AtomicBool {
922
922
///
923
923
/// let mut atomic = AtomicBool::new(true);
924
924
/// unsafe {
925
- /// my_atomic_op(atomic.as_mut_ptr ());
925
+ /// my_atomic_op(atomic.as_ptr ());
926
926
/// }
927
927
/// # }
928
928
/// ```
929
929
#[ inline]
930
930
#[ unstable( feature = "atomic_mut_ptr" , reason = "recently added" , issue = "66893" ) ]
931
- pub const fn as_mut_ptr ( & self ) -> * mut bool {
931
+ pub const fn as_ptr ( & self ) -> * mut bool {
932
932
self . v . get ( ) . cast ( )
933
933
}
934
934
@@ -1814,12 +1814,12 @@ impl<T> AtomicPtr<T> {
1814
1814
///
1815
1815
/// // SAFETY: Safe as long as `my_atomic_op` is atomic.
1816
1816
/// unsafe {
1817
- /// my_atomic_op(atomic.as_mut_ptr ());
1817
+ /// my_atomic_op(atomic.as_ptr ());
1818
1818
/// }
1819
1819
/// ```
1820
1820
#[ inline]
1821
1821
#[ unstable( feature = "atomic_mut_ptr" , reason = "recently added" , issue = "66893" ) ]
1822
- pub const fn as_mut_ptr ( & self ) -> * mut * mut T {
1822
+ pub const fn as_ptr ( & self ) -> * mut * mut T {
1823
1823
self . p . get ( )
1824
1824
}
1825
1825
}
@@ -2719,15 +2719,15 @@ macro_rules! atomic_int {
2719
2719
///
2720
2720
/// // SAFETY: Safe as long as `my_atomic_op` is atomic.
2721
2721
/// unsafe {
2722
- /// my_atomic_op(atomic.as_mut_ptr ());
2722
+ /// my_atomic_op(atomic.as_ptr ());
2723
2723
/// }
2724
2724
/// # }
2725
2725
/// ```
2726
2726
#[ inline]
2727
2727
#[ unstable( feature = "atomic_mut_ptr" ,
2728
2728
reason = "recently added" ,
2729
2729
issue = "66893" ) ]
2730
- pub const fn as_mut_ptr ( & self ) -> * mut $int_type {
2730
+ pub const fn as_ptr ( & self ) -> * mut $int_type {
2731
2731
self . v. get( )
2732
2732
}
2733
2733
}
0 commit comments