From 484bbeba1e4fe13ad815329d3e64d34e46967266 Mon Sep 17 00:00:00 2001 From: Daniel Franklin Date: Thu, 25 Mar 2021 20:06:18 +0000 Subject: [PATCH] Update src/send-and-sync.md Co-authored-by: Daniel Henry-Mantilla --- src/send-and-sync.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/send-and-sync.md b/src/send-and-sync.md index bc75ea1..97e8b24 100644 --- a/src/send-and-sync.md +++ b/src/send-and-sync.md @@ -108,7 +108,7 @@ impl Carton { let mut ptr = unsafe { // Safety: memptr is dereferenceable because we created it from a // reference and have exclusive access. - NonNull::new(memptr.cast::()) + ptr::NonNull::new(memptr.cast::()) .expect("Guaranteed non-null if posix_memalign returns 0") };