From 30964ab86e315ccf45a5f6dd2432d70317fb9357 Mon Sep 17 00:00:00 2001 From: fesily Date: Thu, 17 Nov 2022 10:06:16 +0800 Subject: fix some doc error --- meta/3rd/OpenResty/library/ngx.lua | 3 +++ meta/3rd/OpenResty/library/ngx/pipe.lua | 2 +- meta/3rd/OpenResty/library/ngx/semaphore.lua | 2 ++ meta/3rd/OpenResty/library/resty/core/base.lua | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) (limited to 'meta/3rd') diff --git a/meta/3rd/OpenResty/library/ngx.lua b/meta/3rd/OpenResty/library/ngx.lua index 0cbd94c7..1971641f 100644 --- a/meta/3rd/OpenResty/library/ngx.lua +++ b/meta/3rd/OpenResty/library/ngx.lua @@ -580,6 +580,9 @@ function ngx.worker.pid() end --- This boolean field indicates whether the current NGINX is a debug build, i.e., being built by the `./configure` option `--with-debug`. ---@field debug boolean --- +--- This boolean field indicates whether the current NGINX run by resty. +---@field is_console boolean +--- ngx.config = {} diff --git a/meta/3rd/OpenResty/library/ngx/pipe.lua b/meta/3rd/OpenResty/library/ngx/pipe.lua index 3f58c9cb..c0190e3a 100644 --- a/meta/3rd/OpenResty/library/ngx/pipe.lua +++ b/meta/3rd/OpenResty/library/ngx/pipe.lua @@ -73,7 +73,7 @@ pipe.version = require("resty.core.base").version ---``` --- --- ----@param args table[]|string +---@param args string[]|string ---@param opts? ngx.pipe.spawn.opts ---@return ngx.pipe.proc? proc ---@return string? error diff --git a/meta/3rd/OpenResty/library/ngx/semaphore.lua b/meta/3rd/OpenResty/library/ngx/semaphore.lua index 105262e6..cd5c7586 100644 --- a/meta/3rd/OpenResty/library/ngx/semaphore.lua +++ b/meta/3rd/OpenResty/library/ngx/semaphore.lua @@ -1,6 +1,8 @@ ---@meta ---@class ngx.semaphore +--- sem is the internal c handler +---@field sem userdata local semaphore = { version = require("resty.core.base").version, } diff --git a/meta/3rd/OpenResty/library/resty/core/base.lua b/meta/3rd/OpenResty/library/resty/core/base.lua index 61cd29e5..d84c3486 100644 --- a/meta/3rd/OpenResty/library/resty/core/base.lua +++ b/meta/3rd/OpenResty/library/resty/core/base.lua @@ -17,7 +17,7 @@ function resty_core_base.get_request() end function resty_core_base.get_size_ptr() end ---@param size number ----@param must_alloc boolean +---@param must_alloc? boolean ---@return userdata function resty_core_base.get_string_buf(size, must_alloc) end -- cgit v1.2.3