diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-03-16 17:11:42 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-03-16 19:26:10 +0000 |
commit | 14e4b6bbd8640675d7393bdeb3e93d74ab875ff1 (patch) | |
tree | 3e48d63a51e5ff90b9d47deccc86b22c43fc5fcf /runtime/lua/vim/text.lua | |
parent | 924a7ef8bb3b74eccbffd48bc1a283d3867b8119 (diff) | |
download | rneovim-14e4b6bbd8640675d7393bdeb3e93d74ab875ff1.tar.gz rneovim-14e4b6bbd8640675d7393bdeb3e93d74ab875ff1.tar.bz2 rneovim-14e4b6bbd8640675d7393bdeb3e93d74ab875ff1.zip |
refactor(lua): type annotations
Diffstat (limited to 'runtime/lua/vim/text.lua')
-rw-r--r-- | runtime/lua/vim/text.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/text.lua b/runtime/lua/vim/text.lua index 576b962838..bc90d490aa 100644 --- a/runtime/lua/vim/text.lua +++ b/runtime/lua/vim/text.lua @@ -5,7 +5,7 @@ local M = {} --- Hex encode a string. --- --- @param str string String to encode ---- @return string Hex encoded string +--- @return string : Hex encoded string function M.hexencode(str) local bytes = { str:byte(1, #str) } local enc = {} ---@type string[] @@ -18,7 +18,7 @@ end --- Hex decode a string. --- --- @param enc string String to decode ---- @return string Decoded string +--- @return string : Decoded string function M.hexdecode(enc) assert(#enc % 2 == 0, 'string must have an even number of hex characters') local str = {} ---@type string[] |