about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-12-27 12:33:38 -0800
committerGitHub <noreply@github.com>2022-12-27 12:33:38 -0800
commit49d43468a8182e4e0fda4a15e969266ceba86809 (patch)
tree87838ae2f08ca9d02c260dc55d73dd2fec06ec69
parent79730d6e32b7e4fb5f6774eccac4d3a6debdd1b7 (diff)
parentb026167eb96720c44fc584d2184b3039c44b6932 (diff)
downloadrust-49d43468a8182e4e0fda4a15e969266ceba86809.tar.gz
rust-49d43468a8182e4e0fda4a15e969266ceba86809.zip
Rollup merge of #106189 - alexhrao:master, r=Nilstrieb
Fix UnsafeCell Documentation Spelling Error

This fixes the spelling of "deallocated" (instead of the original "deallocted") In the `cell.rs` source file. Honestly probably not worth the time to evaluate, but since it doesn't involve any code change, I figure why not?
-rw-r--r--library/core/src/cell.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
 /// 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<T>` is constructed or dereferenced, it must still point to