diff options
| author | Max Fan <root@max.fan> | 2021-08-05 22:50:56 -0400 |
|---|---|---|
| committer | Max Fan <root@max.fan> | 2021-08-05 22:50:56 -0400 |
| commit | 89a8ba46b8a1ab4c857706ed375e91a0f3f64a86 (patch) | |
| tree | d2bdc5cf0fb6a32e56845b196d602fe53d371105 | |
| parent | e2f79572fbcbe103346c950d95d7335f6c804d83 (diff) | |
| download | rust-89a8ba46b8a1ab4c857706ed375e91a0f3f64a86.tar.gz rust-89a8ba46b8a1ab4c857706ed375e91a0f3f64a86.zip | |
Fix typo in the ptr documentation
| -rw-r--r-- | library/core/src/ptr/const_ptr.rs | 2 | ||||
| -rw-r--r-- | library/core/src/ptr/mut_ptr.rs | 2 |
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")] |
