Skip to content

Commit 3148a9f

Browse files
authored
Update outdated const context message
1 parent 318f5e6 commit 3148a9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

text/0000-default-field-values.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,8 @@ There are many reasons for this restriction:
10361036
is total than it is to ensure that it is deterministic; thus, while
10371037
it is regrettable, this is an acceptable trade-off.
10381038

1039-
+ Finally, note that `const fn`s, when coupled with planned future extensions,
1040-
can become quite expressive. For example, it is already planned that `loop`s,
1041-
`match`es, `let` statements, and `panic!(..)`s will be allowed.
1039+
+ Finally, note that `const fn`s, can become quite expressive. For example,
1040+
it is possible to use `loop`s, `match`es, `let` statements, and `panic!(..)`s.
10421041
Another feasible extension in the future is allocation.
10431042

10441043
Therefore, constant expressions should be enough to satisfy most expressive

0 commit comments

Comments
 (0)