From b753d80e59fd1e39eaba6c575310f280ee1370d2 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 21 Apr 2025 11:31:58 +0200 Subject: [PATCH] runtime(doc): clarify return type for findfile()/finddir() closes: #17171 Signed-off-by: Christian Brabandt --- runtime/doc/builtin.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 7353776f5e..70f3c88e3a 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 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 if {count} is negative, |String| + otherwise flatten({list} [, {maxdepth}]) *flatten()*