Skip to content

Commit

Permalink
fix doc of os.execute and debug.sethook
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Apr 25, 2022
1 parent de82e9e commit e644ee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion meta/template/debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ function debug.setfenv(object, env) end
---|+'"l"' # ---#DESTAIL 'hookmask.l'

---#DES 'debug.sethook'
---@overload fun(hook: function, mask: hookmask, count?: integer)
---@overload fun(hook: async fun(), mask: hookmask, count?: integer)
---@overload fun(thread: thread)
---@overload fun()
---@param thread thread
---@param hook async fun()
---@param mask hookmask
Expand Down
4 changes: 2 additions & 2 deletions meta/template/os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function os.difftime(t2, t1) end

---#DES 'os.execute'
---#if VERSION <= 5.1 then
---@param command string
---@param command? string
---@return integer code
function os.execute(command) end
---#else
---@param command string
---@param command? string
---@return boolean? suc
---@return exitcode? exitcode
---@return integer? code
Expand Down

0 comments on commit e644ee2

Please sign in to comment.