Skip to content

Commit d5bb7db

Browse files
Update text/0000-unsafe-extern-blocks.md
Co-authored-by: Waffle Maybe <[email protected]>
1 parent 676383f commit d5bb7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-unsafe-extern-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ where `'l1`, ... `'lm` are its lifetime parameters, `A1`, ..., `An` are the decl
9191
### Statics
9292
Statics within external blocks are declared in the same way as statics outside of external blocks, except that they do not have an expression initializing their value. If the static is unsafe to access, then the static should use the `unsafe` qualifier. If the static is safe to access (and immutable), then the static should use the `safe` qualifier (a contextual keyword). Statics that are not qualified as `unsafe` or `safe` are assumed to be `unsafe`.
9393

94-
Extern statics can be either immutable or mutable just like statics outside of external blocks. An immutable static must be initialized before any Rust code is executed. It is not enough for the static to be initialized before Rust code reads from it. A mutable extern static is always `unsafe` to access, the same as a Rust mutable static.
94+
Extern statics can be either immutable or mutable just like statics outside of external blocks. An immutable static must be initialized before any Rust code is executed. It is not enough for the static to be initialized before Rust code reads from it. A mutable extern static is always `unsafe` to access, the same as a Rust mutable static, and as such can not be marked with a `safe` qualifier.
9595

9696
# Drawbacks
9797
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)