Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiangfei2009 committed Dec 2, 2024
1 parent 69a7232 commit 911b16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/const_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ r[const-eval.const-expr.path-static]
* Writes to `static` items are not allowed in any constant evaluation context.
* Reads from `extern` statics are not allowed in any constant evaluation context.
* If the evaluation is *not* carried out in an initializer of a `static` item,
then reads from any mutable `static` are not allowed.
By mutable `static` it includes `static mut`s and `static`s containing an interior-mutable type.
then reads from any mutable `static` are not allowed.
A mutable `static` is a `static mut` item, or a `static` item with an interior-mutable type.

r[const-eval.const-expr.tuple]
* [Tuple expressions].
Expand Down

0 comments on commit 911b16f

Please sign in to comment.