From 633d173d1379480c53de1a5dc07bb80a5a37c32b Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Tue, 5 Apr 2022 17:18:35 +0200 Subject: [PATCH] Change "writers" to "readers" for Deref. Deref and DerefMut code comments both use "writers", but Deref should use "readers". --- 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 6f8b1e8..34539da 100644 --- a/src/send-and-sync.md +++ b/src/send-and-sync.md @@ -148,7 +148,7 @@ impl Deref for Carton { fn deref(&self) -> &Self::Target { unsafe { // Safety: The pointer is aligned, initialized, and dereferenceable - // by the logic in [`Self::new`]. We require writers to borrow the + // by the logic in [`Self::new`]. We require readers to borrow the // Carton, and the lifetime of the return value is elided to the // lifetime of the input. This means the borrow checker will // enforce that no one can mutate the contents of the Carton until