summaryrefslogtreecommitdiff
path: root/meta/template
diff options
context:
space:
mode:
authorC3pa <41503714+C3pa@users.noreply.github.com>2023-03-20 11:59:01 +0100
committerC3pa <41503714+C3pa@users.noreply.github.com>2023-03-20 11:59:01 +0100
commit56ff9fe3b0a4a7bf8a153c7664e07f09488a1b32 (patch)
treeaa1eb1faaa9aea21595999faef5334bdece8ddc9 /meta/template
parentbb18eef81fab79c28347f7a9c35fc00865be4b45 (diff)
downloadlua-language-server-56ff9fe3b0a4a7bf8a153c7664e07f09488a1b32.zip
Add some more number types to string API
Co-authored-by: carsakiller <carsakiller@gmail.com>
Diffstat (limited to 'meta/template')
-rw-r--r--meta/template/string.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/template/string.lua b/meta/template/string.lua
index 08767fbb..6b70ba84 100644
--- a/meta/template/string.lua
+++ b/meta/template/string.lua
@@ -28,7 +28,7 @@ function string.dump(f, strip) end
---#DES 'string.find'
---@param s string|number
----@param pattern string
+---@param pattern string|number
---@param init? integer
---@param plain? boolean
---@return integer start
@@ -61,7 +61,7 @@ function string.gmatch(s, pattern, init) end
---#DES 'string.gsub'
---@param s string|number
----@param pattern string
+---@param pattern string|number
---@param repl string|number|table|function
---@param n? integer
---@return string
@@ -83,7 +83,7 @@ function string.lower(s) end
---#DES 'string.match'
---@param s string|number
----@param pattern string
+---@param pattern string|number
---@param init? integer
---@return any ...
---@nodiscard
@@ -116,7 +116,7 @@ function string.rep(s, n) end
---#DES 'string.rep>5.2'
---@param s string|number
---@param n integer
----@param sep? string
+---@param sep? string|number
---@return string
---@nodiscard
function string.rep(s, n, sep) end