@@ -2403,7 +2403,7 @@ impl<T: ?Sized> Unique<T> {
2403
2403
///
2404
2404
/// The resulting lifetime is bound to self so this behaves "as if"
2405
2405
/// it were actually an instance of T that is getting borrowed. If a longer
2406
- /// (unbound) lifetime is needed, use `&*my_ptr.ptr ()`.
2406
+ /// (unbound) lifetime is needed, use `&*my_ptr.as_ptr ()`.
2407
2407
pub unsafe fn as_ref ( & self ) -> & T {
2408
2408
& * self . as_ptr ( )
2409
2409
}
@@ -2412,7 +2412,7 @@ impl<T: ?Sized> Unique<T> {
2412
2412
///
2413
2413
/// The resulting lifetime is bound to self so this behaves "as if"
2414
2414
/// it were actually an instance of T that is getting borrowed. If a longer
2415
- /// (unbound) lifetime is needed, use `&mut *my_ptr.ptr ()`.
2415
+ /// (unbound) lifetime is needed, use `&mut *my_ptr.as_ptr ()`.
2416
2416
pub unsafe fn as_mut ( & mut self ) -> & mut T {
2417
2417
& mut * self . as_ptr ( )
2418
2418
}
@@ -2544,7 +2544,7 @@ impl<T: ?Sized> NonNull<T> {
2544
2544
///
2545
2545
/// The resulting lifetime is bound to self so this behaves "as if"
2546
2546
/// it were actually an instance of T that is getting borrowed. If a longer
2547
- /// (unbound) lifetime is needed, use `&*my_ptr.ptr ()`.
2547
+ /// (unbound) lifetime is needed, use `&*my_ptr.as_ptr ()`.
2548
2548
#[ stable( feature = "nonnull" , since = "1.24.0" ) ]
2549
2549
pub unsafe fn as_ref ( & self ) -> & T {
2550
2550
& * self . as_ptr ( )
@@ -2554,7 +2554,7 @@ impl<T: ?Sized> NonNull<T> {
2554
2554
///
2555
2555
/// The resulting lifetime is bound to self so this behaves "as if"
2556
2556
/// it were actually an instance of T that is getting borrowed. If a longer
2557
- /// (unbound) lifetime is needed, use `&mut *my_ptr.ptr_mut ()`.
2557
+ /// (unbound) lifetime is needed, use `&mut *my_ptr.as_ptr ()`.
2558
2558
#[ stable( feature = "nonnull" , since = "1.24.0" ) ]
2559
2559
pub unsafe fn as_mut ( & mut self ) -> & mut T {
2560
2560
& mut * self . as_ptr ( )
0 commit comments