mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00
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!
This commit is contained in:
commit
dba6cb76c2
@ -48,7 +48,7 @@ impl<T: ?Sized> *const T {
|
|||||||
self as _
|
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`].
|
/// The pointer can be later reconstructed with [`from_raw_parts`].
|
||||||
#[unstable(feature = "ptr_metadata", issue = "81513")]
|
#[unstable(feature = "ptr_metadata", issue = "81513")]
|
||||||
|
@ -47,7 +47,7 @@ impl<T: ?Sized> *mut T {
|
|||||||
self as _
|
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`].
|
/// The pointer can be later reconstructed with [`from_raw_parts_mut`].
|
||||||
#[unstable(feature = "ptr_metadata", issue = "81513")]
|
#[unstable(feature = "ptr_metadata", issue = "81513")]
|
||||||
|
Loading…
Reference in New Issue
Block a user