doc: fix typo in comments
dereferencable -> dereferenceable
This commit is contained in:
parent
928783de66
commit
0d7b830139
11 changed files with 32 additions and 32 deletions
|
@ -2121,7 +2121,7 @@ impl<T: ?Sized> Weak<T> {
|
|||
// a valid payload address, as the payload is at least as aligned as RcBox (usize).
|
||||
ptr as *const T
|
||||
} else {
|
||||
// SAFETY: if is_dangling returns false, then the pointer is dereferencable.
|
||||
// SAFETY: if is_dangling returns false, then the pointer is dereferenceable.
|
||||
// The payload may be dropped at this point, and we have to maintain provenance,
|
||||
// so use raw pointer manipulation.
|
||||
unsafe { ptr::addr_of_mut!((*ptr).value) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue