summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/template/string.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/template/string.lua b/meta/template/string.lua
index b0acb5b8..c5fe6ab6 100644
--- a/meta/template/string.lua
+++ b/meta/template/string.lua
@@ -20,11 +20,18 @@ function string.byte(s, i, j) end
function string.char(byte, ...) end
---#DES 'string.dump'
+---#if VERSION >= 5.3 or JIT then
---@param f async fun(...):...
---@param strip? boolean
---@return string
---@nodiscard
function string.dump(f, strip) end
+---#else
+---@param f async fun(...):...
+---@return string
+---@nodiscard
+function string.dump(f) end
+---#end
---#DES 'string.find'
---@param s string|number
@@ -93,6 +100,7 @@ function string.match(s, pattern, init) end
---#DES 'string.pack'
---@param fmt string
---@param v1 string|number
+---@param v2 string|number
---@param ... string|number
---@return string binary
---@nodiscard