about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMax Fan <root@max.fan>2021-08-05 22:50:56 -0400
committerMax Fan <root@max.fan>2021-08-05 22:50:56 -0400
commit89a8ba46b8a1ab4c857706ed375e91a0f3f64a86 (patch)
treed2bdc5cf0fb6a32e56845b196d602fe53d371105
parente2f79572fbcbe103346c950d95d7335f6c804d83 (diff)
downloadrust-89a8ba46b8a1ab4c857706ed375e91a0f3f64a86.tar.gz
rust-89a8ba46b8a1ab4c857706ed375e91a0f3f64a86.zip
Fix typo in the ptr documentation
-rw-r--r--library/core/src/ptr/const_ptr.rs2
-rw-r--r--library/core/src/ptr/mut_ptr.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs
index ac2e5ed256d..95e86a688be 100644
--- a/library/core/src/ptr/const_ptr.rs
+++ b/library/core/src/ptr/const_ptr.rs
@@ -48,7 +48,7 @@ impl<T: ?Sized> *const T {
         self as _
     }
 
-    /// Decompose a (possibly wide) pointer into is address and metadata components.
+    /// Decompose a (possibly wide) pointer into its address and metadata components.
     ///
     /// The pointer can be later reconstructed with [`from_raw_parts`].
     #[unstable(feature = "ptr_metadata", issue = "81513")]
diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs
index 98a4cb59a66..adc64cb2bd3 100644
--- a/library/core/src/ptr/mut_ptr.rs
+++ b/library/core/src/ptr/mut_ptr.rs
@@ -47,7 +47,7 @@ impl<T: ?Sized> *mut T {
         self as _
     }
 
-    /// Decompose a (possibly wide) pointer into is address and metadata components.
+    /// Decompose a (possibly wide) pointer into its address and metadata components.
     ///
     /// The pointer can be later reconstructed with [`from_raw_parts_mut`].
     #[unstable(feature = "ptr_metadata", issue = "81513")]