Skip to content

Commit 26ea9eb

Browse files
committed
Fix a typo in swap_nonoverlapping_bytes
1 parent 134b7b5 commit 26ea9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ unsafe fn swap_nonoverlapping_bytes(x: *mut u8, y: *mut u8, len: usize) {
512512
let t = t.as_mut_ptr() as *mut u8;
513513

514514
// SAFETY: As `i < len`, and as the caller must guarantee that `x` and `y` are valid
515-
// for `len` bytes, `x + i` and `y + i` must be valid adresses, which fulfills the
515+
// for `len` bytes, `x + i` and `y + i` must be valid addresses, which fulfills the
516516
// safety contract for `add`.
517517
//
518518
// Also, the caller must guarantee that `x` and `y` are valid for writes, properly aligned,

0 commit comments

Comments
 (0)