Skip to content

Commit 7cc2ee2

Browse files
committed
Address review comments
1 parent 31f087e commit 7cc2ee2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/const_eval.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ to be run.
4343
* [Cast] expressions, except pointer to address and
4444
function pointer to address casts.
4545
* Calls of [const functions] and const methods.
46-
* [loop], [while] and `while let` expressions.
46+
* [loop], [while] and [`while let`] expressions.
4747
* [if], [`if let`] and [match] expressions.
4848

4949
## Const context
@@ -57,6 +57,12 @@ A _const context_ is one of the following:
5757
* [statics]
5858
* [enum discriminants]
5959

60+
## Const Functions
61+
62+
A _const fn_ is a function that one is permitted to call from a const context. Declaring a function
63+
`const` has no effect on any existing uses, it only restricts the types that arguments and the
64+
return type may use, as well as prevent various expressions from being used within it.
65+
6066
[arithmetic]: expressions/operator-expr.md#arithmetic-and-logical-binary-operators
6167
[array expressions]: expressions/array-expr.md
6268
[array indexing]: expressions/array-expr.md#array-and-slice-indexing-expressions

0 commit comments

Comments
 (0)