rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.74k stars 256 forks source link

Imprecision in "What Unsafe Rust Can Do" #437

Open alimf17 opened 6 months ago

alimf17 commented 6 months ago

In "What Unsafe Can Do", the fourth bullet point on the first list is "Mutate statics." What it should say is "Access or modify mutable statics", same as "Rust By Example"'s list: the compiler does not allow you to read a mutable static without an unsafe block.