Skip to content

Commit dba6cb7

Browse files
authored
Rollup merge of #87809 - InnovativeInventor:pointer-typo, r=dtolnay
Fix typo in the ptr documentation Spotted a minor typo in the docs ;). Pointers are cool!
2 parents c5202b3 + 89a8ba4 commit dba6cb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl<T: ?Sized> *const T {
4848
self as _
4949
}
5050

51-
/// Decompose a (possibly wide) pointer into is address and metadata components.
51+
/// Decompose a (possibly wide) pointer into its address and metadata components.
5252
///
5353
/// The pointer can be later reconstructed with [`from_raw_parts`].
5454
#[unstable(feature = "ptr_metadata", issue = "81513")]

library/core/src/ptr/mut_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<T: ?Sized> *mut T {
4747
self as _
4848
}
4949

50-
/// Decompose a (possibly wide) pointer into is address and metadata components.
50+
/// Decompose a (possibly wide) pointer into its address and metadata components.
5151
///
5252
/// The pointer can be later reconstructed with [`from_raw_parts_mut`].
5353
#[unstable(feature = "ptr_metadata", issue = "81513")]

0 commit comments

Comments
 (0)