Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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 <cjihrig@gmail.com>
  • Loading branch information
stcruy authored and cjihrig committed Mar 16, 2015
commit 690c96cf71462a7323588d0785b2d0a020e02aa2
6 changes: 3 additions & 3 deletions doc/api/path.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ An example on Windows:

process.env.PATH.split(path.delimiter)
// returns
['C:\Windows\system32', 'C:\Windows', 'C:\Program Files\iojs\']
['C:\\Windows\\system32', 'C:\\Windows', 'C:\\Program Files\\iojs\\']

## path.parse(pathString)

Expand All @@ -223,8 +223,8 @@ An example on Windows:
path.parse('C:\\path\\dir\\index.html')
// returns
{
root : "C:\",
dir : "C:\path\dir",
root : "C:\\",
dir : "C:\\path\\dir",
base : "index.html",
ext : ".html",
name : "index"
Expand Down