From 8f1cede788969e7328351726ed8190232fb6fcda Mon Sep 17 00:00:00 2001 From: Victorhck Date: Tue, 20 Apr 2021 19:19:57 +0200 Subject: [PATCH] fix capital R in ch27 --- ch27_vimscript_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch27_vimscript_functions.md b/ch27_vimscript_functions.md index 2c97c30..9e17d2f 100644 --- a/ch27_vimscript_functions.md +++ b/ch27_vimscript_functions.md @@ -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?