Skip to content

Commit 7bbf535

Browse files
tshepangehuss
authored andcommitted
separate uses from what is allowed in const fns themselves
1 parent cd00008 commit 7bbf535

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)