runtime(doc): clarify return type for findfile()/finddir()
Commit:
https://github.com/vim/vim/commit/b753d80e59fd1e39eaba6c575310f280ee1370d2
Author: Christian Brabandt <[email protected]>
Date: Mon Apr 21 11:31:58 2025 +0200
runtime(doc): clarify return type for findfile()/finddir()
closes: https://github.com/vim/vim/issues/17171
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 7353776f5..70f3c88e3 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -3260,7 +3260,8 @@ finddir({name} [, {path} [, {count}]])
*finddir()*
Can also be used as a |method|: >
GetName()->finddir()
<
- Return type: |String|
+ Return type: list<string> if {count} is negative, |String|
+ otherwise
findfile({name} [, {path} [, {count}]])
*findfile()*
@@ -3274,7 +3275,8 @@ findfile({name} [, {path} [, {count}]])
*findfile()*
Can also be used as a |method|: >
GetName()->findfile()
<
- Return type: |String|
+ Return type: list<string> if {count} is negative, |String|
+ otherwise
flatten({list} [, {maxdepth}]) *flatten()*
--
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1u6ni2-00GHpl-T5%40256bit.org.