diff options
author | human154 <46430360+human154@users.noreply.github.com> | 2024-02-20 12:24:59 -0500 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-03-06 13:26:43 +0000 |
commit | 8fb6de2e2332c2139a1d93b9d8376ee524500395 (patch) | |
tree | f8d67e394528c7b8e74814ddf7beec4acaf0b37e /src | |
parent | e1d6c114b618b35856d63de64430fc1c7c065170 (diff) | |
download | tour-8fb6de2e2332c2139a1d93b9d8376ee524500395.tar.gz tour-8fb6de2e2332c2139a1d93b9d8376ee524500395.zip |
changed description of underscore in function capture
It didn't make sense to me to call it the "final argument".
Diffstat (limited to 'src')
-rw-r--r-- | src/content/chapter1_functions/lesson05_function_captures/en.html | 3 |
1 files changed, 2 insertions, 1 deletions
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 <code>fn(a) { some_function(..., a, ...) }</code> can be written as <code>some_function(..., _, ...)</code>, with any number of other arguments passed to the inner function. The underscore <code>_</code> is - a placeholder for the final argument. + a placeholder for the argument, equivalent to <code>a</code> in + <code>fn(a) { some_function(..., a, ...) }</code>. </p> |