From d24177c7de9fdd8809274ce3f64045e5030e1286 Mon Sep 17 00:00:00 2001
From: Yuqi Huang <ctrlhuangyq@gmail.com>
Date: Tue, 16 Aug 2022 11:03:05 +0800
Subject: fix inappropriate definition of utf8.offset

The third parameter of utf8.offset is optional according to Lua Reference Manual.
---
 meta/template/utf8.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'meta/template')

diff --git a/meta/template/utf8.lua b/meta/template/utf8.lua
index 1797a5e8..cccee99a 100644
--- a/meta/template/utf8.lua
+++ b/meta/template/utf8.lua
@@ -70,7 +70,7 @@ function utf8.len(s, i, j, lax) end
 ---#DES 'utf8.offset'
 ---@param s string
 ---@param n integer
----@param i integer
+---@param i? integer
 ---@return integer p
 ---@nodiscard
 function utf8.offset(s, n, i) end
-- 
cgit v1.2.3