Skip to content

Commit 8dd9e07

Browse files
authored
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 27c7709 + 4515461 commit 8dd9e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/ptr/mut_ptr.rs

+1-1
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)