aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-11-27 11:26:49 -0500
committerGitHub <noreply@github.com>2021-11-27 11:26:49 -0500
commitb51b0aecc969040641da29dbd7cf28e419972f15 (patch)
tree4ea697718367451f481551a4d96c61076738c76d /runtime/doc/lua.txt
parentcaa6992a1071a2ac373bec21085685da4a1790d6 (diff)
downloadrneovim-b51b0aecc969040641da29dbd7cf28e419972f15.tar.gz
rneovim-b51b0aecc969040641da29dbd7cf28e419972f15.tar.bz2
rneovim-b51b0aecc969040641da29dbd7cf28e419972f15.zip
docs: regenerate (#16390)
Co-authored-by: marvim <marvim@users.noreply.github.com>
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 39c59ae019..babe27083a 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1324,7 +1324,7 @@ deepcopy({orig}) *vim.deepcopy()*
and will throw an error.
Parameters: ~
- {orig} Table to copy
+ {orig} table Table to copy
Return: ~
New table of copied keys and (nested) values.
@@ -1613,12 +1613,14 @@ 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: ~