From 0d44be306d993fb89e31cf69c41284f014cc9ef6 Mon Sep 17 00:00:00 2001
From: Sakthipriyan Vairamani
Date: Wed, 18 May 2016 15:38:49 +0530
Subject: [PATCH] doc: fix mkdtemp example by removing hyphen
The example uses only `/tmp`, not `/tmp-`. So, the result cannot be
`/tmp-abc123`, but just `/tmpabc123`.
---
doc/api/fs.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/api/fs.md b/doc/api/fs.md
index a849cd3d5b7bfa..b666acedb14287 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -914,7 +914,7 @@ const tmpDir = '/tmp';
fs.mkdtemp(tmpDir, (err, folder) => {
if (err) throw err;
console.log(folder);
- // Will print something similar to `/tmp-abc123`.
+ // Will print something similar to `/tmpabc123`.
// Note that a new temporary directory is created
// at the file system root rather than *within*
// the /tmp directory.