Rollup merge of #125186 - Colepng:master, r=lqd

Remove duplicate word from addr docs

This PR simply removes a duplicate word from the addr docs for *mut T.
This commit is contained in:
Matthias Krüger 2024-05-17 07:20:58 +02:00 committed by GitHub
commit a6862f8612
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,7 +187,7 @@ impl<T: ?Sized> *mut T {
///
/// This is similar to `self as usize`, which semantically discards *provenance* and
/// *address-space* information. However, unlike `self as usize`, casting the returned address
/// back to a pointer yields yields a [pointer without provenance][without_provenance_mut], which is undefined
/// back to a pointer yields a [pointer without provenance][without_provenance_mut], which is undefined
/// behavior to dereference. To properly restore the lost information and obtain a
/// dereferenceable pointer, use [`with_addr`][pointer::with_addr] or
/// [`map_addr`][pointer::map_addr].