Skip to content

Commit 911b16f

Browse files
apply suggestions
1 parent 69a7232 commit 911b16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/const_eval.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ r[const-eval.const-expr.path-static]
4646
* Writes to `static` items are not allowed in any constant evaluation context.
4747
* Reads from `extern` statics are not allowed in any constant evaluation context.
4848
* If the evaluation is *not* carried out in an initializer of a `static` item,
49-
then reads from any mutable `static` are not allowed.
50-
By mutable `static` it includes `static mut`s and `static`s containing an interior-mutable type.
49+
then reads from any mutable `static` are not allowed.
50+
A mutable `static` is a `static mut` item, or a `static` item with an interior-mutable type.
5151

5252
r[const-eval.const-expr.tuple]
5353
* [Tuple expressions].

0 commit comments

Comments
 (0)