@@ -140,7 +140,7 @@ implemented by executing an illegal instruction.
140
140
## Const functions
141
141
142
142
Functions qualified with the ` const ` keyword are const functions. _ Const
143
- functions_ can be called from within [ const contexts ] . When called from a const
143
+ functions_ can be called from within [ const context ] s . When called from a const
144
144
context, the function is interpreted by the compiler at compile time. The
145
145
interpretation happens in the environment of the compilation target and not the
146
146
host. So ` usize ` is ` 32 ` bits if you are compiling against a ` 32 ` bit system,
@@ -150,7 +150,7 @@ If a const function is called outside a [const context], it is indistinguishable
150
150
from any other function. You can freely do anything with a const function that
151
151
you can do with a regular function.
152
152
153
- Const functions have various restrictions to make sure that they can't be
153
+ Const functions have various restrictions to make sure that they can be
154
154
evaluated at compile-time. It is, for example, not possible to write a random
155
155
number generator as a const function. Calling a const function at compile-time
156
156
will always yield the same result as calling it at runtime, even when called
@@ -222,7 +222,7 @@ attributes macros.
222
222
[ _Statement_ ] : statements.html
223
223
[ _Type_ ] : types.html#type-expressions
224
224
[ _WhereClause_ ] : items/generics.html#where-clauses
225
- [ const contexts ] : const_eval.html
225
+ [ const context ] : const_eval.html#const-context
226
226
[ external blocks ] : items/external-blocks.html
227
227
[ path ] : paths.html
228
228
[ block ] : expressions/block-expr.html
0 commit comments