From 6741e194a0eae6277d3b596f46cf4773505290c0 Mon Sep 17 00:00:00 2001 From: KirtiRamchandani Date: Sat, 13 Jun 2026 17:10:38 +0000 Subject: [PATCH] docs(api): fix tmpfile('f2.txt') example output path The inline comment incorrectly showed foo.txt even though tmpfile() joins the provided name verbatim under the temp directory. --- 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 ```