mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Apply suggestions from code review
This commit is contained in:
parent
988bc1c654
commit
b11e0a883b
@ -286,7 +286,7 @@ impl<T: ?Sized> *const T {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -317,7 +317,7 @@ impl<T: ?Sized> *const T {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that *either* the pointer is null *or*
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
@ -72,7 +72,7 @@
|
||||
//! * The pointer must point to a valid value of type `T`.
|
||||
//! This means that the created reference can only refer to
|
||||
//! uninitialized memory through careful use of `MaybeUninit`,
|
||||
//! or if the uninitialized memory is entirly contained within
|
||||
//! or if the uninitialized memory is entirely contained within
|
||||
//! padding bytes, since
|
||||
//! [padding has the same validity invariant as `MaybeUninit`][ucg-pad].
|
||||
//!
|
||||
|
@ -247,7 +247,7 @@ impl<T: ?Sized> *mut T {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that *either* the pointer is null *or*
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -296,7 +296,7 @@ impl<T: ?Sized> *mut T {
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// When calling this method, you have to ensure that the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -616,7 +616,7 @@ impl<T: ?Sized> *mut T {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -651,7 +651,7 @@ impl<T: ?Sized> *mut T {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that *either* the pointer is null *or*
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
#[inline]
|
||||
#[unstable(feature = "ptr_as_uninit", issue = "75402")]
|
||||
#[rustc_const_unstable(feature = "const_ptr_as_ref", issue = "91822")]
|
||||
|
@ -342,7 +342,7 @@ impl<T: ?Sized> NonNull<T> {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@ -379,7 +379,7 @@ impl<T: ?Sized> NonNull<T> {
|
||||
/// # Safety
|
||||
///
|
||||
/// When calling this method, you have to ensure that
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion)
|
||||
/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user