diff options
author | C3pa <41503714+C3pa@users.noreply.github.com> | 2023-07-04 09:55:20 +0200 |
---|---|---|
committer | C3pa <41503714+C3pa@users.noreply.github.com> | 2023-07-04 09:55:20 +0200 |
commit | 0b961858509c7e6cbd73cfc2c9ed8fe272e392bb (patch) | |
tree | 8ab2a7a3a1d0e9a6a68e462e6c7a1375a256e851 /meta/template | |
parent | 59641f50a418febf886d9388e94c8221efa586c2 (diff) | |
download | lua-language-server-0b961858509c7e6cbd73cfc2c9ed8fe272e392bb.zip |
Mark string.find return values as nilable
Diffstat (limited to 'meta/template')
-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 |