fix capital R in ch27

This commit is contained in:
Victorhck 2021-04-20 19:19:57 +02:00
parent 425baeb3af
commit 8f1cede788

View file

@ -227,7 +227,7 @@ function! Buffet(...)
endfunction
echo Buffet("Noodles", "Sushi")
" Returns "Noodles Sushi"
" returns "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?