doc: fix '\\' typos on Windows
This commit changes the Windows examples in path.markdown to correctly display '\\'. PR-URL: https://github.com/joyent/node/pull/9412 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
89bf6c05e9
commit
e6e616fdcb
@ -200,7 +200,7 @@ An example on Windows:
|
|||||||
|
|
||||||
process.env.PATH.split(path.delimiter)
|
process.env.PATH.split(path.delimiter)
|
||||||
// returns
|
// returns
|
||||||
['C:\Windows\system32', 'C:\Windows', 'C:\Program Files\iojs\']
|
['C:\\Windows\\system32', 'C:\\Windows', 'C:\\Program Files\\iojs\\']
|
||||||
|
|
||||||
## path.parse(pathString)
|
## path.parse(pathString)
|
||||||
|
|
||||||
@ -223,8 +223,8 @@ An example on Windows:
|
|||||||
path.parse('C:\\path\\dir\\index.html')
|
path.parse('C:\\path\\dir\\index.html')
|
||||||
// returns
|
// returns
|
||||||
{
|
{
|
||||||
root : "C:\",
|
root : "C:\\",
|
||||||
dir : "C:\path\dir",
|
dir : "C:\\path\\dir",
|
||||||
base : "index.html",
|
base : "index.html",
|
||||||
ext : ".html",
|
ext : ".html",
|
||||||
name : "index"
|
name : "index"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user