summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty/library
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2022-11-17 10:06:16 +0800
committerfesily <fesil@foxmail.com>2022-11-17 10:06:16 +0800
commit30964ab86e315ccf45a5f6dd2432d70317fb9357 (patch)
tree6a161fc9685937b9510ec63302b61e676d516752 /meta/3rd/OpenResty/library
parent3bdd74aa30a6175f1bbf973559241f99eb563dfe (diff)
downloadlua-language-server-30964ab86e315ccf45a5f6dd2432d70317fb9357.zip
fix some doc error
Diffstat (limited to 'meta/3rd/OpenResty/library')
-rw-r--r--meta/3rd/OpenResty/library/ngx.lua3
-rw-r--r--meta/3rd/OpenResty/library/ngx/pipe.lua2
-rw-r--r--meta/3rd/OpenResty/library/ngx/semaphore.lua2
-rw-r--r--meta/3rd/OpenResty/library/resty/core/base.lua2
4 files changed, 7 insertions, 2 deletions
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