@@ -2403,7 +2403,7 @@ impl<T: ?Sized> Unique<T> {
24032403 ///
24042404 /// The resulting lifetime is bound to self so this behaves "as if"
24052405 /// 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 ()`.
24072407 pub unsafe fn as_ref ( & self ) -> & T {
24082408 & * self . as_ptr ( )
24092409 }
@@ -2412,7 +2412,7 @@ impl<T: ?Sized> Unique<T> {
24122412 ///
24132413 /// The resulting lifetime is bound to self so this behaves "as if"
24142414 /// 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 ()`.
24162416 pub unsafe fn as_mut ( & mut self ) -> & mut T {
24172417 & mut * self . as_ptr ( )
24182418 }
@@ -2544,7 +2544,7 @@ impl<T: ?Sized> NonNull<T> {
25442544 ///
25452545 /// The resulting lifetime is bound to self so this behaves "as if"
25462546 /// 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 ()`.
25482548 #[ stable( feature = "nonnull" , since = "1.24.0" ) ]
25492549 pub unsafe fn as_ref ( & self ) -> & T {
25502550 & * self . as_ptr ( )
@@ -2554,7 +2554,7 @@ impl<T: ?Sized> NonNull<T> {
25542554 ///
25552555 /// The resulting lifetime is bound to self so this behaves "as if"
25562556 /// 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 ()`.
25582558 #[ stable( feature = "nonnull" , since = "1.24.0" ) ]
25592559 pub unsafe fn as_mut ( & mut self ) -> & mut T {
25602560 & mut * self . as_ptr ( )
0 commit comments