Skip to content

Commit e644ee2

Browse files
committed
fix doc of os.execute and debug.sethook
1 parent de82e9e commit e644ee2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

meta/template/debug.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ function debug.setfenv(object, env) end
146146
---|+'"l"' # ---#DESTAIL 'hookmask.l'
147147

148148
---#DES 'debug.sethook'
149-
---@overload fun(hook: function, mask: hookmask, count?: integer)
149+
---@overload fun(hook: async fun(), mask: hookmask, count?: integer)
150+
---@overload fun(thread: thread)
151+
---@overload fun()
150152
---@param thread thread
151153
---@param hook async fun()
152154
---@param mask hookmask

meta/template/os.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ function os.difftime(t2, t1) end
4545

4646
---#DES 'os.execute'
4747
---#if VERSION <= 5.1 then
48-
---@param command string
48+
---@param command? string
4949
---@return integer code
5050
function os.execute(command) end
5151
---#else
52-
---@param command string
52+
---@param command? string
5353
---@return boolean? suc
5454
---@return exitcode? exitcode
5555
---@return integer? code

0 commit comments

Comments
 (0)