Commit: runtime(doc): wrong return type for execute() function

3 views
Skip to first unread message

Christian Brabandt

unread,
Jun 19, 2024, 2:15:10 PM6/19/24
to vim...@googlegroups.com
runtime(doc): wrong return type for execute() function

Commit: https://github.com/vim/vim/commit/c98bfb9f59b8045372e4c0e396d707f55d9d027a
Author: Marius Gedminas <mar...@gedmin.as>
Date: Wed Jun 19 19:59:23 2024 +0200

runtime(doc): wrong return type for execute() function

The description clearly explains that this function returns a string. I
think the 'Number' here is a copy/paste error.

closes: #15045

Signed-off-by: Marius Gedminas <mar...@gedmin.as>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 0061e9efc..c1dd26020 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -1,4 +1,4 @@
-*builtin.txt* For Vim version 9.1. Last change: 2024 Jun 17
+*builtin.txt* For Vim version 9.1. Last change: 2024 Jun 19


VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2580,7 +2580,7 @@ execute({command} [, {silent}]) *execute()*
Can also be used as a |method|: >
GetCommand()->execute()
<
- Return type: |Number|
+ Return type: |String|


exepath({expr}) *exepath()*
Reply all
Reply to author
Forward
0 new messages