summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/vim9.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 493fa879e5..c518663904 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -435,7 +435,7 @@ Set using a variable with lambda expression: >
let &tagfunc = L
In Vim9 script, in a compiled function, you can use a lambda, but a
-closured does not work, because the function will be called without the
+closure does not work, because the function will be called without the
context of where it was defined.
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index ddcd25503a..6cabb870d8 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -1789,7 +1789,7 @@ filename. For example: >
Then you can use "that.item", etc. You are free to choose the name "that".
Use something that will be recognized as referring to the imported script.
Avoid command names, command modifiers and builtin function names, because the
-name will shadow them. Better not start the name starts with a capital
+name will shadow them. It's better not to start the name with a capital
letter, since it can then also shadow global user commands and functions.
Also, you cannot use the name for something else in the script, such as a
function or variable name.