From 8fb6de2e2332c2139a1d93b9d8376ee524500395 Mon Sep 17 00:00:00 2001 From: human154 <46430360+human154@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:24:59 -0500 Subject: changed description of underscore in function capture It didn't make sense to me to call it the "final argument". --- src/content/chapter1_functions/lesson05_function_captures/en.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/content/chapter1_functions') diff --git a/src/content/chapter1_functions/lesson05_function_captures/en.html b/src/content/chapter1_functions/lesson05_function_captures/en.html index afa87a3..1b60f51 100644 --- a/src/content/chapter1_functions/lesson05_function_captures/en.html +++ b/src/content/chapter1_functions/lesson05_function_captures/en.html @@ -7,5 +7,6 @@ The anonymous function fn(a) { some_function(..., a, ...) } can be written as some_function(..., _, ...), with any number of other arguments passed to the inner function. The underscore _ is - a placeholder for the final argument. + a placeholder for the argument, equivalent to a in + fn(a) { some_function(..., a, ...) }.

-- cgit v1.2.3