From 64957019c86a14549113aaae39c4b613225191de Mon Sep 17 00:00:00 2001 From: Daniel Franklin Date: Thu, 1 Apr 2021 13:42:55 +0100 Subject: [PATCH] Update src/send-and-sync.md Co-authored-by: Yuki Okushi --- 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 67858e7..9742328 100644 --- a/src/send-and-sync.md +++ b/src/send-and-sync.md @@ -214,7 +214,7 @@ sort of Box would be Send, which in this case is the same as saying T is Send. unsafe impl Send for Carton where Box: Send {} ``` -Right now Carton has a memory leak, as it never frees the memory it allocates. +Right now `Carton` has a memory leak, as it never frees the memory it allocates. Once we fix that we have a new requirement we have to ensure we meet to be Send: we need to know `free` can be called on a pointer that was yielded by an allocation done on another thread. We can check this is true in the docs for