]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): fix two typos in `vim9.txt` and `options.txt` (#13258)
authorAliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Tue, 3 Oct 2023 14:39:53 +0000 (17:39 +0300)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 14:39:53 +0000 (16:39 +0200)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt
runtime/doc/vim9.txt

index 493fa879e5c11d9baf593f8f3d2ec261153eff65..c5186639040f03875b214a8515eb12533d0e666f 100644 (file)
@@ -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.
 
 
index ddcd25503a3bae44a154beb3d34659a95cf5aa03..6cabb870d8dcc6f7803ca2f9f317f762b57fc985 100644 (file)
@@ -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.