Skip to content

Commit

Permalink
Rollup merge of #125186 - Colepng:master, r=lqd
Browse files Browse the repository at this point in the history
Remove duplicate word from addr docs

This PR simply removes a duplicate word from the addr docs for *mut T.
  • Loading branch information
matthiaskrgr authored May 17, 2024
2 parents 52de709 + d8b9717 commit a6862f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit a6862f8

Please sign in to comment.