File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ $(TR $(TH Function Name) $(TH Description)
5252 $(TD Passes the fields of a struct as arguments to a function.
5353 ))
5454 $(TR $(TD $(LREF ctEval))
55- $(TD Enforces the execution of a function during compile-time.
55+ $(TD Enforces the evaluation of an expression during compile-time.
5656 ))
5757))
5858
@@ -2172,20 +2172,20 @@ template bind(alias fun)
21722172}
21732173
21742174/**
2175- * Enforces the execution of a function during compile-time.
2175+ * Enforces the evaluation of an expression during compile-time.
21762176 *
2177- * Computes the return value of a function call during compilation (CTFE).
2177+ * Computes the value of an expression during compilation (CTFE).
21782178 *
21792179 * This is useful for call chains in functional programming
2180- * where no explicit `enum` can be placed inline and would require splitting
2180+ * where declaring an `enum` constant would require splitting
21812181 * the pipeline.
21822182 *
21832183 * Params:
2184- * fun = callable to evaluate
2184+ * expr = expression to evaluate
21852185 * See_also:
21862186 * $(LINK https://dlang.org/spec/function.html#interpretation)
21872187 */
2188- enum ctEval (alias fun ) = fun ;
2188+ enum ctEval (alias expr ) = expr ;
21892189
21902190// /
21912191@safe unittest
You can’t perform that action at this time.
0 commit comments