Skip to content

Commit eee560c

Browse files
authored
Update expressions.md
1 parent 310812a commit eee560c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/expressions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,7 @@ Implicit borrows may be taken in the following expressions:
232232
## Constant expressions
233233

234234
Certain types of expressions can be evaluated at compile time. These are called
235-
_constant expressions_. Certain places, such as in
236-
[constants](items/constant-items.html) and [statics](items/static-items.html),
237-
require a constant expression, and are always evaluated at compile time. In
235+
_constant expressions_ and are required in [const contexts]. In
238236
other places, such as in [`let` statements](statements.html#let-statements),
239237
constant expressions may be evaluated at compile time. If errors, such as out
240238
of bounds [array indexing] or [overflow] occurs,
@@ -313,6 +311,7 @@ exist in `core::ops` and `core::cmp` with the same names.
313311
[let]: statements.html#let-statements
314312
[let statement]: statements.html#let-statements
315313
[Mutable `static` items]: items/static-items.html#mutable-statics
314+
[const contexts]: const_eval.html
316315
[slice]: types.html#array-and-slice-types
317316
[static variables]: items/static-items.html
318317
[Temporary values]: #temporary-lifetimes

0 commit comments

Comments
 (0)