diff options
| author | Gregory Anders <greg@gpanders.com> | 2024-05-30 19:57:47 -0500 |
|---|---|---|
| committer | Gregory Anders <greg@gpanders.com> | 2024-05-31 08:25:35 -0500 |
| commit | 4cff4185647c17b1a397c4c26ff7d8b0738f6396 (patch) | |
| tree | 1a4b6afbb4133e2c2846a5902a6ec1bfdcb5e71c /runtime/doc | |
| parent | d24f3d055ae7b3e9e47e9eb53a1dafb3ad44760c (diff) | |
| download | rneovim-4cff4185647c17b1a397c4c26ff7d8b0738f6396.tar.gz rneovim-4cff4185647c17b1a397c4c26ff7d8b0738f6396.tar.bz2 rneovim-4cff4185647c17b1a397c4c26ff7d8b0738f6396.zip | |
fix(vim.text): remove assert from vim.text.hexdecode
Instead, return nil plus an error message if the input is invalid.
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lua.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index 36d6e0d41e..8e600adeb9 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -4385,8 +4385,9 @@ vim.text.hexdecode({enc}) *vim.text.hexdecode()* Parameters: ~ • {enc} (`string`) String to decode - Return: ~ - (`string`) Decoded string + Return (multiple): ~ + (`string?`) Decoded string + (`string?`) Error message, if any vim.text.hexencode({str}) *vim.text.hexencode()* Hex encode a string. |