]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): clarify return type for findfile()/finddir()
authorChristian Brabandt <cb@256bit.org>
Mon, 21 Apr 2025 09:31:58 +0000 (11:31 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 21 Apr 2025 09:31:58 +0000 (11:31 +0200)
closes: #17171

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt

index 7353776f5eefa168cc036ccad09308c0905bd920..70f3c88e3a7e76be9fef27ae21fce6ffe3f8feed 100644 (file)
@@ -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()*