We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 27c7709 + 4515461 commit 8dd9e07Copy full SHA for 8dd9e07
core/src/ptr/mut_ptr.rs
@@ -187,7 +187,7 @@ impl<T: ?Sized> *mut T {
187
///
188
/// This is similar to `self as usize`, which semantically discards *provenance* and
189
/// *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
+ /// back to a pointer yields a [pointer without provenance][without_provenance_mut], which is undefined
191
/// behavior to dereference. To properly restore the lost information and obtain a
192
/// dereferenceable pointer, use [`with_addr`][pointer::with_addr] or
193
/// [`map_addr`][pointer::map_addr].
0 commit comments