1
Fork 0

doc: fix typo in comments

dereferencable -> dereferenceable
This commit is contained in:
japm48 2021-12-12 00:23:06 +01:00
parent 928783de66
commit 0d7b830139
11 changed files with 32 additions and 32 deletions

View file

@ -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) }