Fix docs for ptr method with_metadata_of()
This commit is contained in:
parent
39f2657d11
commit
ccb552e4f5
2 changed files with 4 additions and 4 deletions
|
@ -61,14 +61,14 @@ impl<T: ?Sized> *const T {
|
||||||
|
|
||||||
/// Use the pointer value in a new pointer of another type.
|
/// Use the pointer value in a new pointer of another type.
|
||||||
///
|
///
|
||||||
/// In case `val` is a (fat) pointer to an unsized type, this operation
|
/// In case `meta` is a (fat) pointer to an unsized type, this operation
|
||||||
/// will ignore the pointer part, whereas for (thin) pointers to sized
|
/// will ignore the pointer part, whereas for (thin) pointers to sized
|
||||||
/// types, this has the same effect as a simple cast.
|
/// types, this has the same effect as a simple cast.
|
||||||
///
|
///
|
||||||
/// The resulting pointer will have provenance of `self`, i.e., for a fat
|
/// The resulting pointer will have provenance of `self`, i.e., for a fat
|
||||||
/// pointer, this operation is semantically the same as creating a new
|
/// pointer, this operation is semantically the same as creating a new
|
||||||
/// fat pointer with the data pointer value of `self` but the metadata of
|
/// fat pointer with the data pointer value of `self` but the metadata of
|
||||||
/// `val`.
|
/// `meta`.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
|
@ -60,14 +60,14 @@ impl<T: ?Sized> *mut T {
|
||||||
|
|
||||||
/// Use the pointer value in a new pointer of another type.
|
/// Use the pointer value in a new pointer of another type.
|
||||||
///
|
///
|
||||||
/// In case `val` is a (fat) pointer to an unsized type, this operation
|
/// In case `meta` is a (fat) pointer to an unsized type, this operation
|
||||||
/// will ignore the pointer part, whereas for (thin) pointers to sized
|
/// will ignore the pointer part, whereas for (thin) pointers to sized
|
||||||
/// types, this has the same effect as a simple cast.
|
/// types, this has the same effect as a simple cast.
|
||||||
///
|
///
|
||||||
/// The resulting pointer will have provenance of `self`, i.e., for a fat
|
/// The resulting pointer will have provenance of `self`, i.e., for a fat
|
||||||
/// pointer, this operation is semantically the same as creating a new
|
/// pointer, this operation is semantically the same as creating a new
|
||||||
/// fat pointer with the data pointer value of `self` but the metadata of
|
/// fat pointer with the data pointer value of `self` but the metadata of
|
||||||
/// `val`.
|
/// `meta`.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue