Add help references to call cmd and call function

This commit is contained in:
Igor Irianto 2021-02-11 10:01:02 -06:00 committed by GitHub
parent 73efe0b005
commit 7ad8ed77b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,6 +189,8 @@ echo call("Tasty", ["gravy"])
To clear any confusion, you have just used two different `call` commands: the `:call` command-line command and the `call()` function. The `call()` function accepts as its first argument the function name (string) and its second argument the formal parameters (list).
To learn more about `:call` and `call()`, check out `:h call()` and `:h :call`.
## Default Argument
You can provide a function parameter with a default value with `=`. If you call `Breakfast` with only one argument, the `beverage` argument will use the "milk" default value.