diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 14:53:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-09 14:53:48 +0800 |
commit | 05d9e522a839460d713fe942f985392e6b9d6602 (patch) | |
tree | 0ba74b2745bba61668ba2cea8c59c046cd19e445 /meta/template/debug.lua | |
parent | f1da3cff2805d871e527c23a790b5ec6cfb9439e (diff) | |
download | lua-language-server-05d9e522a839460d713fe942f985392e6b9d6602.zip |
incorrect doc: `debug.getlocal`
Diffstat (limited to 'meta/template/debug.lua')
-rw-r--r-- | meta/template/debug.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/template/debug.lua b/meta/template/debug.lua index 224c06b3..26b6049e 100644 --- a/meta/template/debug.lua +++ b/meta/template/debug.lua @@ -66,6 +66,7 @@ function debug.gethook(co) end ---@return debuginfo function debug.getinfo(thread, f, what) end +---#if VERSION <= 5.1 then ---#DES 'debug.getlocal<5.1' ---@overload fun(level: integer, index: integer):string, any ---@param thread thread @@ -74,7 +75,7 @@ function debug.getinfo(thread, f, what) end ---@return string name ---@return any value function debug.getlocal(thread, level, index) end - +---#else ---#DES 'debug.getlocal>5.2' ---@overload fun(f: integer|function, index: integer):string, any ---@param thread thread @@ -83,6 +84,7 @@ function debug.getlocal(thread, level, index) end ---@return string name ---@return any value function debug.getlocal(thread, f, index) end +---#end ---#DES 'debug.getmetatable' ---@param object any |