File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ pub const fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T] {
289
289
///
290
290
/// Behavior is undefined if any of the following conditions are violated:
291
291
///
292
- /// * Both `x` and `y` must be [valid] for reads and writes.
292
+ /// * Both `x` and `y` must be [valid] for both reads and writes.
293
293
///
294
294
/// * Both `x` and `y` must be properly aligned.
295
295
///
@@ -355,7 +355,7 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
355
355
///
356
356
/// Behavior is undefined if any of the following conditions are violated:
357
357
///
358
- /// * Both `x` and `y` must be [valid] for reads and writes of `count *
358
+ /// * Both `x` and `y` must be [valid] for both reads and writes of `count *
359
359
/// size_of::<T>()` bytes.
360
360
///
361
361
/// * Both `x` and `y` must be properly aligned.
You can’t perform that action at this time.
0 commit comments