Skip to content

Commit

Permalink
Rollup merge of #87809 - InnovativeInventor:pointer-typo, r=dtolnay
Browse files Browse the repository at this point in the history
Fix typo in the ptr documentation

Spotted a minor typo in the docs ;). Pointers are cool!
  • Loading branch information
JohnTitor authored Aug 6, 2021
2 parents c5202b3 + 89a8ba4 commit dba6cb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/core/src/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/ptr/mut_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit dba6cb7

Please sign in to comment.