1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-10 14:56:08 +00:00

Merge pull request #860 from sogaiu/short-fn-docstring-tweak

Tweak short-fn docstring
This commit is contained in:
Calvin Rose
2021-11-04 19:39:55 -05:00
committed by GitHub

View File

@@ -2055,7 +2055,7 @@
``` ```
Shorthand for fn. Arguments are given as $n, where n is the 0-indexed Shorthand for fn. Arguments are given as $n, where n is the 0-indexed
argument of the function. $ is also an alias for the first (index 0) argument. argument of the function. $ is also an alias for the first (index 0) argument.
The $& symbol will make the anonymous function variadic if it apears in the The $& symbol will make the anonymous function variadic if it appears in the
body of the function - it can be combined with positional arguments. body of the function - it can be combined with positional arguments.
Example usage: Example usage: