Better word to use

Length --> Number of arguments. I think it is much more correct.
This commit is contained in:
Enis Arik 2021-07-18 17:33:13 +02:00 committed by GitHub
parent b441c685a8
commit 1d773f3fb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,7 @@ echo Buffet("Noodles", "Sushi")
The problem with this approach is if you now run `echo Buffet("Noodles")` (with only one variable), Vim complains that it has an undefined variable `a:2`. How can you make it flexible enough to display exactly what the user gives?
Luckily, Vim has a special variable `a:0` to display the *length* of the argument passed into `...`.
Luckily, Vim has a special variable `a:0` to display the *number* of the arguments passed into `...`.
```
function! Buffet(...)