runtime(doc): fix base64 encode/decode examples Commit: https://github.com/vim/vim/commit/6472e583656aced8045fc852282708a684d77cfa Author: Maxim Kim <haba...@gmail.com> Date: Wed Jan 15 18:31:05 2025 +0100
runtime(doc): fix base64 encode/decode examples Use str2blob()/blob2str() functions in examples given. closes: #16449 Signed-off-by: Maxim Kim <haba...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 10970bc51..9ba22dc74 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2025 Jan 14 +*builtin.txt* For Vim version 9.1. Last change: 2025 Jan 15 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1244,7 +1244,7 @@ base64_decode({string}) *base64_decode()* " Write the decoded contents to a binary file call writefile(base64_decode(s), 'tools.bmp') " Decode a base64-encoded string - echo list2str(blob2list(base64_decode(encodedstr))) + echo blob2str(base64_decode(encodedstr)) < Can also be used as a |method|: > GetEncodedString()->base64_decode() @@ -1260,7 +1260,7 @@ base64_encode({blob}) *base64_encode()* " Encode the contents of a binary file echo base64_encode(readblob('somefile.bin')) " Encode a string - echo base64_encode(list2blob(str2list(somestr))) + echo base64_encode(str2blob(somestr)) < Can also be used as a |method|: > GetBinaryData()->base64_encode() -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tY7Rv-00E9ii-A4%40256bit.org.