File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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] {
289289///
290290/// Behavior is undefined if any of the following conditions are violated:
291291///
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.
293293///
294294/// * Both `x` and `y` must be properly aligned.
295295///
@@ -355,7 +355,7 @@ pub unsafe fn swap<T>(x: *mut T, y: *mut T) {
355355///
356356/// Behavior is undefined if any of the following conditions are violated:
357357///
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 *
359359/// size_of::<T>()` bytes.
360360///
361361/// * Both `x` and `y` must be properly aligned.
You can’t perform that action at this time.
0 commit comments