Skip to content

Commit 5d3fba7

Browse files
committed
separate uses from what is allowed in const fns themselves
1 parent 7d03395 commit 5d3fba7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/const_eval.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,10 @@ A _const fn_ is a function that one is permitted to call from a const context.
263263
264264
r[const-eval.const-fn.usage]
265265
Declaring a function
266-
`const` has no effect on any existing uses, it only restricts the types that arguments and the
266+
`const` has no effect on any existing uses.
267+
268+
r[const-eval.const-fn.restrictions]
269+
Declaring a function `const` restricts the types that arguments and the
267270
return type may use, and restricts the function body to constant expressions.
268271
269272
r[const-eval.const-fn.const-context]

0 commit comments

Comments
 (0)