Skip to content

Commit 36c84b0

Browse files
apply suggestions
1 parent e8c43a6 commit 36c84b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/const_eval.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ to be run.
2424
* [Paths] to [functions] and [constants].
2525
Recursively defining constants is not allowed.
2626
* Paths to immutable [statics] with these restrictions and observations.
27-
* In particular, reads and writes to `static mut` are not allowed.
28-
* Reads out of and writes into a `static` with data equipped with interior mutability are not allowed.
29-
* Reads out of and writes into [`extern` statics] are not allowed.
27+
* In particular, reads and writes to any `static`, `static mut` or [`extern` statics] is not allowed.
28+
* Immutable borrows and pointers into immutable part of a `static` are allowed and observes the same restriction
29+
on all other forms of [borrow]s as mentioned below.
3030
* [Tuple expressions].
3131
* [Array expressions].
3232
* [Struct] expressions.

0 commit comments

Comments
 (0)