about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-17 07:20:58 +0200
committerGitHub <noreply@github.com>2024-05-17 07:20:58 +0200
commita6862f86125a5f150dd84cbe4087058708b2a8db (patch)
tree110482c236e4fbd19153c3ece2723b93c85c9fe3
parent52de70933aab43248b6522b8a22c261b992f1a01 (diff)
parentd8b9717038f67ce0915899e1dbccc68e94b2d32e (diff)
downloadrust-a6862f86125a5f150dd84cbe4087058708b2a8db.tar.gz
rust-a6862f86125a5f150dd84cbe4087058708b2a8db.zip
Rollup merge of #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.
-rw-r--r--library/core/src/ptr/mut_ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs
index b67930503e0..7856a1d8581 100644
--- a/library/core/src/ptr/mut_ptr.rs
+++ b/library/core/src/ptr/mut_ptr.rs
@@ -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].