From c8e9a4a665da5e8dd73fb7cfb1a94b98f0e45c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 24 Dec 2021 14:37:12 +0800 Subject: mark `string.gmatch` as `nodiscard` --- meta/template/string.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/template/string.lua') diff --git a/meta/template/string.lua b/meta/template/string.lua index d3b4c431..0e0d0537 100644 --- a/meta/template/string.lua +++ b/meta/template/string.lua @@ -51,6 +51,7 @@ function string.format(s, ...) end ---@param s string ---@param pattern string ---@return fun():string, ... +---@nodiscard function string.gmatch(s, pattern) end ---#else ---@param s string -- cgit v1.2.3