aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authorii14 <ii14@users.noreply.github.com>2021-11-28 12:33:44 +0100
committerDundar Göc <gocdundar@gmail.com>2021-11-30 09:03:41 +0100
commitbc1d13bb368298988e87983307e6d92f20441f56 (patch)
tree3a1810dc9426d32210a806179fd4e649d259e658 /runtime/doc/lua.txt
parente4976cbd26dc6f7f7b8444d2b107e3ed2b97f25e (diff)
downloadrneovim-bc1d13bb368298988e87983307e6d92f20441f56.tar.gz
rneovim-bc1d13bb368298988e87983307e6d92f20441f56.tar.bz2
rneovim-bc1d13bb368298988e87983307e6d92f20441f56.zip
chore: fix typos
Co-authored-by: ii14 <ii14@users.noreply.github.com>
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index babe27083a..70f0faf11c 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1235,7 +1235,7 @@ on_key({fn}, {ns_id}) *vim.on_key()*
it removes the callback for the associated
{ns_id}
{ns_id} number? Namespace ID. If nil or 0, generates and
- returns a new |nvim_create_namesapce()| id.
+ returns a new |nvim_create_namespace()| id.
Return: ~
number Namespace id associated with {fn}. Or count of all
@@ -1613,14 +1613,12 @@ validate({opt}) *vim.validate()*
vim.validate{arg1={{'foo'}, 'table'}, arg2={'foo', 'string'}}
=> NOP (success)
-<
->
- vim.validate{arg1={1, 'table'}}
- => error('arg1: expected table, got number')
-<
->
- vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
- => error('arg1: expected even number, got 3')
+
+ vim.validate{arg1={1, 'table'}}
+ => error('arg1: expected table, got number')
+
+ vim.validate{arg1={3, function(a) return (a % 2) == 0 end, 'even number'}}
+ => error('arg1: expected even number, got 3')
<
Parameters: ~