From e644ee28154f2278c33a73f3fe27f626dd1198b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Apr 2022 01:28:30 +0800 Subject: fix doc of `os.execute` and `debug.sethook` --- meta/template/debug.lua | 4 +++- meta/template/os.lua | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'meta') diff --git a/meta/template/debug.lua b/meta/template/debug.lua index 7db63e49..f62aca6e 100644 --- a/meta/template/debug.lua +++ b/meta/template/debug.lua @@ -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 diff --git a/meta/template/os.lua b/meta/template/os.lua index af9b3278..711a17b6 100644 --- a/meta/template/os.lua +++ b/meta/template/os.lua @@ -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 -- cgit v1.2.3