From 0b961858509c7e6cbd73cfc2c9ed8fe272e392bb Mon Sep 17 00:00:00 2001 From: C3pa <41503714+C3pa@users.noreply.github.com> Date: Tue, 4 Jul 2023 09:55:20 +0200 Subject: [PATCH] Mark string.find return values as nilable --- meta/template/string.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/template/string.lua b/meta/template/string.lua index 841654f5c..b0acb5b8d 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