Skip to content

Commit e6e616f

Browse files
stcruycjihrig
authored andcommitted
doc: fix '\\' typos on Windows
This commit changes the Windows examples in path.markdown to correctly display '\\'. PR-URL: nodejs/node-v0.x-archive#9412 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 89bf6c0 commit e6e616f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/path.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ An example on Windows:
200200

201201
process.env.PATH.split(path.delimiter)
202202
// returns
203-
['C:\Windows\system32', 'C:\Windows', 'C:\Program Files\iojs\']
203+
['C:\\Windows\\system32', 'C:\\Windows', 'C:\\Program Files\\iojs\\']
204204

205205
## path.parse(pathString)
206206

@@ -223,8 +223,8 @@ An example on Windows:
223223
path.parse('C:\\path\\dir\\index.html')
224224
// returns
225225
{
226-
root : "C:\",
227-
dir : "C:\path\dir",
226+
root : "C:\\",
227+
dir : "C:\\path\\dir",
228228
base : "index.html",
229229
ext : ".html",
230230
name : "index"

0 commit comments

Comments
 (0)