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
This commit is contained in:
commit
194472c9e3
@ -512,7 +512,7 @@ unsafe fn swap_nonoverlapping_bytes(x: *mut u8, y: *mut u8, len: usize) {
|
||||
let t = t.as_mut_ptr() as *mut u8;
|
||||
|
||||
// SAFETY: As `i < len`, and as the caller must guarantee that `x` and `y` are valid
|
||||
// for `len` bytes, `x + i` and `y + i` must be valid adresses, which fulfills the
|
||||
// for `len` bytes, `x + i` and `y + i` must be valid addresses, which fulfills the
|
||||
// safety contract for `add`.
|
||||
//
|
||||
// Also, the caller must guarantee that `x` and `y` are valid for writes, properly aligned,
|
||||
|
@ -1,6 +1,6 @@
|
||||
//! Thread-local destructor
|
||||
//!
|
||||
//! Besides thread-local "keys" (pointer-sized non-adressable thread-local store
|
||||
//! Besides thread-local "keys" (pointer-sized non-addressable thread-local store
|
||||
//! with an associated destructor), many platforms also provide thread-local
|
||||
//! destructors that are not associated with any particular data. These are
|
||||
//! often more efficient.
|
||||
|
Loading…
Reference in New Issue
Block a user