mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-26 20:40:18 +00:00
fix capital R in ch27
This commit is contained in:
parent
425baeb3af
commit
8f1cede788
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ function! Buffet(...)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
echo Buffet("Noodles", "Sushi")
|
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?
|
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?
|
||||||
|
|
Loading…
Reference in a new issue