aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-26 08:35:05 +0800
committerGitHub <noreply@github.com>2023-08-26 08:35:05 +0800
commitb1cfb299df2ef412339f594173ed23c75c090c8a (patch)
treea69da4fdc1e11c05a6dd73c8740ce00dc469c576 /runtime/doc/lua.txt
parent5d8ab32f3871b0232972cac1116ac7cba98389e5 (diff)
downloadrneovim-b1cfb299df2ef412339f594173ed23c75c090c8a.tar.gz
rneovim-b1cfb299df2ef412339f594173ed23c75c090c8a.tar.bz2
rneovim-b1cfb299df2ef412339f594173ed23c75c090c8a.zip
docs: various clarifications (#24876)
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index b4ca88251e..39eb530c24 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -979,12 +979,12 @@ vim.str_utf_end({str}, {index}) *vim.str_utf_end()*
Examples: >lua
- -- The character 'æ' are equal to the bytes '\xc3\xa6' (using UTF-8)
+ -- The character 'æ' is stored as the bytes '\xc3\xa6' (using UTF-8)
-- Returns 0 because the index is pointing at the last byte of a character
vim.str_utf_end('æ', 2)
- -- Returns 1 because the index is pointing at the second last byte of a character
+ -- Returns 1 because the index is pointing at the penultimate byte of a character
vim.str_utf_end('æ', 1)
<
@@ -1016,7 +1016,7 @@ vim.str_utf_start({str}, {index}) *vim.str_utf_start()*
Examples: >lua
- -- The character 'æ' are equal to the bytes '\xc3\xa6' (using UTF-8)
+ -- The character 'æ' is stored as the bytes '\xc3\xa6' (using UTF-8)
-- Returns 0 because the index is pointing at the first byte of a character
vim.str_utf_start('æ', 1)