@@ -256,8 +256,10 @@ impl<T: ?Sized> NonNull<T> {
256
256
257
257
/// Gets the "address" portion of the pointer.
258
258
///
259
+ /// For more details see the equivalent method on a raw pointer, [`pointer::addr`].
260
+ ///
259
261
/// This API and its claimed semantics are part of the Strict Provenance experiment,
260
- /// see the [module documentation][crate::ptr] for details .
262
+ /// see the [`ptr` module documentation][crate::ptr].
261
263
#[ must_use]
262
264
#[ inline]
263
265
#[ unstable( feature = "strict_provenance" , issue = "95228" ) ]
@@ -272,8 +274,10 @@ impl<T: ?Sized> NonNull<T> {
272
274
273
275
/// Creates a new pointer with the given address.
274
276
///
277
+ /// For more details see the equivalent method on a raw pointer, [`pointer::with_addr`].
278
+ ///
275
279
/// This API and its claimed semantics are part of the Strict Provenance experiment,
276
- /// see the [module documentation][crate::ptr] for details .
280
+ /// see the [`ptr` module documentation][crate::ptr].
277
281
#[ must_use]
278
282
#[ inline]
279
283
#[ unstable( feature = "strict_provenance" , issue = "95228" ) ]
@@ -287,10 +291,10 @@ impl<T: ?Sized> NonNull<T> {
287
291
288
292
/// Creates a new pointer by mapping `self`'s address to a new one.
289
293
///
290
- /// This is a convenience for [`with_addr`][Self::with_addr], see that method for details .
294
+ /// For more details see the equivalent method on a raw pointer, [`pointer::map_addr`] .
291
295
///
292
296
/// This API and its claimed semantics are part of the Strict Provenance experiment,
293
- /// see the [module documentation][crate::ptr] for details .
297
+ /// see the [`ptr` module documentation][crate::ptr].
294
298
#[ must_use]
295
299
#[ inline]
296
300
#[ unstable( feature = "strict_provenance" , issue = "95228" ) ]
0 commit comments