Skip to content

Commit 49d4346

Browse files
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?
2 parents 79730d6 + b026167 commit 49d4346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
17831783
/// until the reference expires. As a special exception, given an `&T`, any part of it that is
17841784
/// inside an `UnsafeCell<_>` may be deallocated during the lifetime of the reference, after the
17851785
/// last time the reference is used (dereferenced or reborrowed). Since you cannot deallocate a part
1786-
/// of what a reference points to, this means the memory an `&T` points to can be deallocted only if
1786+
/// of what a reference points to, this means the memory an `&T` points to can be deallocated only if
17871787
/// *every part of it* (including padding) is inside an `UnsafeCell`.
17881788
///
17891789
/// However, whenever a `&UnsafeCell<T>` is constructed or dereferenced, it must still point to

0 commit comments

Comments
 (0)