Skip to content

Commit

Permalink
Unrolled build for rust-lang#125186
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer authored May 17, 2024
2 parents 8af67ba + d8b9717 commit b524fe4
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 b524fe4

Please sign in to comment.