Skip to content

Commit 7c7feea

Browse files
committed
Add clarification from nikomatsakis
Niko requested this clarification about whether "happens inside an `UnsafeCell` meant "happens to bytes inside of an `UnsafeCell`", so let's go ahead and just add that language to the text.
1 parent 1cab014 commit 7c7feea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/external-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Extern statics can be either immutable or mutable just like [statics] outside of
5757
An immutable static *must* be initialized before any Rust code is executed. It is not enough for
5858
the static to be initialized before Rust code reads from it.
5959
Once Rust code runs, mutating an immutable static (from inside or outside Rust) is UB,
60-
except if the mutation happens inside an `UnsafeCell`.
60+
except if the mutation happens to bytes inside of an `UnsafeCell`.
6161

6262
## ABI
6363

0 commit comments

Comments
 (0)