summaryrefslogtreecommitdiff
path: root/meta/template
diff options
context:
space:
mode:
authorYuqi Huang <ctrlhuangyq@gmail.com>2022-08-16 11:03:05 +0800
committerGitHub <noreply@github.com>2022-08-16 11:03:05 +0800
commitd24177c7de9fdd8809274ce3f64045e5030e1286 (patch)
treea33bcf1869aae808ac0b2c8aa401b7dcfd7cd504 /meta/template
parentb5a3cdd62312a42b7694a64a69caf1b7e0479dfd (diff)
downloadlua-language-server-d24177c7de9fdd8809274ce3f64045e5030e1286.zip
fix inappropriate definition of utf8.offset
The third parameter of utf8.offset is optional according to Lua Reference Manual.
Diffstat (limited to 'meta/template')
-rw-r--r--meta/template/utf8.lua2
1 files changed, 1 insertions, 1 deletions
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