Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiangfei2009 committed Oct 13, 2024
1 parent e8c43a6 commit 36c84b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/const_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ to be run.
* [Paths] to [functions] and [constants].
Recursively defining constants is not allowed.
* Paths to immutable [statics] with these restrictions and observations.
* In particular, reads and writes to `static mut` are not allowed.
* Reads out of and writes into a `static` with data equipped with interior mutability are not allowed.
* Reads out of and writes into [`extern` statics] are not allowed.
* In particular, reads and writes to any `static`, `static mut` or [`extern` statics] is not allowed.
* Immutable borrows and pointers into immutable part of a `static` are allowed and observes the same restriction
on all other forms of [borrow]s as mentioned below.
* [Tuple expressions].
* [Array expressions].
* [Struct] expressions.
Expand Down

0 comments on commit 36c84b0

Please sign in to comment.