Skip to content

Commit 3e81e49

Browse files
committed
docs(api): fix tmpfile() example to show matching output filename
1 parent b6bc975 commit 3e81e49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Temp file factory.
328328

329329
```js
330330
f1 = tmpfile() // /os/based/tmp/zx-1ra1iofojgg
331-
f2 = tmpfile('f2.txt') // /os/based/tmp/zx-1ra1iofojgg/foo.txt
331+
f2 = tmpfile('f2.txt') // /os/based/tmp/zx-1ra1iofojgg/f2.txt
332332
f3 = tmpfile('f3.txt', 'string or buffer')
333333
f4 = tmpfile('f4.sh', 'echo "foo"', 0o744) // executable
334334
```

0 commit comments

Comments
 (0)