From b026167eb96720c44fc584d2184b3039c44b6932 Mon Sep 17 00:00:00 2001 From: Alex Rao Date: Tue, 27 Dec 2022 12:17:56 -0600 Subject: [PATCH] Fix UnsafeCell Documentation Spelling Error This fixes the spelling of "deallocated" (instead of the original "deallocted") In the `cell.rs` source file --- library/core/src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index b4e173ce03d..ba93165cf53 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -1783,7 +1783,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { /// until the reference expires. As a special exception, given an `&T`, any part of it that is /// inside an `UnsafeCell<_>` may be deallocated during the lifetime of the reference, after the /// last time the reference is used (dereferenced or reborrowed). Since you cannot deallocate a part -/// of what a reference points to, this means the memory an `&T` points to can be deallocted only if +/// of what a reference points to, this means the memory an `&T` points to can be deallocated only if /// *every part of it* (including padding) is inside an `UnsafeCell`. /// /// However, whenever a `&UnsafeCell` is constructed or dereferenced, it must still point to