Skip to content

Commit 73de72e

Browse files
committed
Clarify wording of the Sync requirement for an immutable static
Additionally, this drops the statement that all access is "safe" since there isn't anything that would imply that it is unsafe.
1 parent 68fb8b8 commit 73de72e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/items/static-items.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ Static initializers may refer to other statics.
2222
Non-`mut` static items that contain a type that is not [interior mutable] may
2323
be placed in read-only memory.
2424

25-
All access to a static is safe,
26-
provided that the type must have the `Sync` trait bound to allow thread-safe access.
25+
The type of an immutable static must implement the [`Sync`](std::marker::Sync) trait.
2726

2827
The initializer expression must be omitted in an [external block], and must be
2928
provided for free static items.

0 commit comments

Comments
 (0)