Skip to content

Commit 194472c

Browse files
authored
Rollup merge of #83110 - hyksm:fix-typo, r=jonas-schievink
Fix typos in `library/core/src/ptr/mod.rs` and `library/std/src/sys_common/thread_local_dtor.rs` adress -> address
2 parents f1061d1 + 5ec0540 commit 194472c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/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,

library/std/src/sys_common/thread_local_dtor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Thread-local destructor
22
//!
3-
//! Besides thread-local "keys" (pointer-sized non-adressable thread-local store
3+
//! Besides thread-local "keys" (pointer-sized non-addressable thread-local store
44
//! with an associated destructor), many platforms also provide thread-local
55
//! destructors that are not associated with any particular data. These are
66
//! often more efficient.

0 commit comments

Comments
 (0)