diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-07-06 11:38:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 11:38:43 +0800 |
commit | 91524a855815c56deeb0246266ce1e18e31b070c (patch) | |
tree | 1c154f3039fe29be87a54c0190f8b8aeacb95331 | |
parent | b6b9d9e72c0770da2988da5a3f0db0ecca22fd7f (diff) | |
parent | 0b961858509c7e6cbd73cfc2c9ed8fe272e392bb (diff) | |
download | lua-language-server-91524a855815c56deeb0246266ce1e18e31b070c.zip |
Merge pull request #2192 from C3pa/string-find-update
Mark string.find return values as nilable
-rw-r--r-- | meta/template/string.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/template/string.lua b/meta/template/string.lua index 841654f5..b0acb5b8 100644 --- a/meta/template/string.lua +++ b/meta/template/string.lua @@ -31,9 +31,9 @@ function string.dump(f, strip) end ---@param pattern string|number ---@param init? integer ---@param plain? boolean ----@return integer start ----@return integer end ----@return any ... captured +---@return integer|nil start +---@return integer|nil end +---@return any|nil ... captured ---@nodiscard function string.find(s, pattern, init, plain) end |