From f62b677ea091b0a55e543c27343337c079ff0de9 Mon Sep 17 00:00:00 2001 From: DevCop95 Date: Thu, 2 Jul 2026 15:56:53 -0500 Subject: [PATCH] docs(api): fix tmpfile('f2.txt') example output filename The inline comment showed 'foo.txt' but tmpfile(name) returns path.join(tempdir(), name), so the result ends with 'f2.txt'. Closes #1469 --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index b69b0f3027..043c77301c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -328,7 +328,7 @@ Temp file factory. ```js f1 = tmpfile() // /os/based/tmp/zx-1ra1iofojgg -f2 = tmpfile('f2.txt') // /os/based/tmp/zx-1ra1iofojgg/foo.txt +f2 = tmpfile('f2.txt') // /os/based/tmp/zx-1ra1iofojgg/f2.txt f3 = tmpfile('f3.txt', 'string or buffer') f4 = tmpfile('f4.sh', 'echo "foo"', 0o744) // executable ```