Skip to content

Commit 6dad80d

Browse files
authored
Merge pull request #1961 from rust-lang/TC/fix-indentation-of-static-path-restriction
Fix indentation of static path restriction text
2 parents 6110395 + 378fa89 commit 6dad80d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/const_eval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ r[const-eval.const-expr.path-static]
4646
* Reads from `extern` statics are not allowed in any constant evaluation context.
4747
* If the evaluation is *not* carried out in an initializer of a `static` item, 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.
4848

49-
These requirements are checked only when the constant is evaluated. In other words, having such accesses syntactically occur in const contexts is allowed as long as they never get executed.
49+
These requirements are checked only when the constant is evaluated. In other words, having such accesses syntactically occur in const contexts is allowed as long as they never get executed.
5050

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

0 commit comments

Comments
 (0)