Skip to content

Commit adebbc3

Browse files
thefourtheyeFishrock123
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 0025934 commit adebbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ const tmpDir = '/tmp';
906906
fs.mkdtemp(tmpDir, (err, folder) => {
907907
if (err) throw err;
908908
console.log(folder);
909-
// Will print something similar to `/tmp-abc123`.
909+
// Will print something similar to `/tmpabc123`.
910910
// Note that a new temporary directory is created
911911
// at the file system root rather than *within*
912912
// the /tmp directory.

0 commit comments

Comments
 (0)