Skip to content

Commit acc1142

Browse files
thefourtheyejasnell
authored andcommitted
doc: fix mkdtemp example by removing hyphen
The example uses only `/tmp`, not `/tmp-`. So, the result cannot be `/tmp-abc123`, but just `/tmpabc123`. PR-URL: #6834 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 99bf6fa commit acc1142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ const tmpDir = '/tmp';
914914
fs.mkdtemp(tmpDir, (err, folder) => {
915915
if (err) throw err;
916916
console.log(folder);
917-
// Will print something similar to `/tmp-abc123`.
917+
// Will print something similar to `/tmpabc123`.
918918
// Note that a new temporary directory is created
919919
// at the file system root rather than *within*
920920
// the /tmp directory.

0 commit comments

Comments
 (0)