mirror of
https://github.com/leafo/moonscript.git
synced 2024-12-24 01:04:21 +00:00
Fix typo in argument defaults section
This commit is contained in:
parent
8c8f0874df
commit
39a904d419
@ -195,7 +195,7 @@ func = (num) => @value + num
|
|||||||
|
|
||||||
It is possible to provide default values for the arguments of a function. An
|
It is possible to provide default values for the arguments of a function. An
|
||||||
argument is determined to be empty if its value is `nil`. Any `nil` arguments
|
argument is determined to be empty if its value is `nil`. Any `nil` arguments
|
||||||
that have a default value will be replace before the body of the function is run.
|
that have a default value will be replaced before the body of the function is run.
|
||||||
|
|
||||||
```moon
|
```moon
|
||||||
my_function = (name="something", height=100) ->
|
my_function = (name="something", height=100) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user