Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b524fe4

Browse files
authored
Unrolled build for rust-lang#125186
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.
2 parents 8af67ba + d8b9717 commit b524fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/mut_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<T: ?Sized> *mut T {
187187
///
188188
/// This is similar to `self as usize`, which semantically discards *provenance* and
189189
/// *address-space* information. However, unlike `self as usize`, casting the returned address
190-
/// back to a pointer yields yields a [pointer without provenance][without_provenance_mut], which is undefined
190+
/// back to a pointer yields a [pointer without provenance][without_provenance_mut], which is undefined
191191
/// behavior to dereference. To properly restore the lost information and obtain a
192192
/// dereferenceable pointer, use [`with_addr`][pointer::with_addr] or
193193
/// [`map_addr`][pointer::map_addr].

0 commit comments

Comments
 (0)