try to clarify wording
This commit is contained in:
@@ -795,10 +795,9 @@ pub const fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T] {
|
||||
///
|
||||
/// Behavior is undefined if any of the following conditions are violated:
|
||||
///
|
||||
/// * Both `x` and `y` must be [valid] for both reads and writes.
|
||||
///
|
||||
/// * `x` must remain valid for reads and writes even after `y` is read/written, and vice versa.
|
||||
/// (In other words, there cannot be aliasing restrictions on the use of these pointers.)
|
||||
/// * Both `x` and `y` must be [valid] for both reads and writes. They must remain valid even if the
|
||||
/// other pointer is written. (This means if the memory ranges overlap, the two pointers must not
|
||||
/// be subject to aliasing restrictions relative to each other.)
|
||||
///
|
||||
/// * Both `x` and `y` must be properly aligned.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user