Skip to content

Commit 60386ff

Browse files
authored
Update static-items.md
"All access to a static is safe" -> "All access to an immutable static is safe"
1 parent aa309aa commit 60386ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/static-items.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ other lifetimes in a Rust program. Non-`mut` static items that contain a type
1212
that is not [interior mutable] may be placed in read-only memory. Static items
1313
do not call [`drop`] at the end of the program.
1414

15-
All access to a static is safe, but there are a number of restrictions on
15+
All access to an immutable static is safe, but there are a number of restrictions on
1616
statics:
1717

1818
* The type must have the `Sync` trait bound to allow thread-safe access.

0 commit comments

Comments
 (0)