Update src/send-and-sync.md

Co-authored-by: Yuki Okushi <jtitor@2k36.org>
pull/259/head
Daniel Franklin 4 years ago committed by GitHub
parent 33fa3de810
commit 4a910d8e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -162,7 +162,7 @@ impl<T> DerefMut for Carton<T> {
fn deref_mut(&mut self) -> &mut Self::Target { fn deref_mut(&mut self) -> &mut Self::Target {
unsafe { unsafe {
// Safety: The pointer is aligned, initialized, and dereferenceable // Safety: The pointer is aligned, initialized, and dereferenceable
// by the logic in [`Self::new]. We require writers to mutably // by the logic in [`Self::new`]. We require writers to mutably
// borrow the Carton, and the lifetime of the return value is // borrow the Carton, and the lifetime of the return value is
// elided to the lifetime of the input. This means the borrow // elided to the lifetime of the input. This means the borrow
// checker will enforce that no one else can access the contents // checker will enforce that no one else can access the contents

Loading…
Cancel
Save