mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
doc: fix path markdown formatting
Single quotes in two of the examples were throwing off the formatting of the path documentation on the Node.js website. This commit expands two contractions to remove the offending quotes. PR-URL: https://github.com/nodejs/node/pull/7817 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
6945aa7085
commit
65a42ab892
@ -367,7 +367,7 @@ path.parse('/home/user/dir/file.txt')
|
||||
│ root │ │ name │ ext │
|
||||
" / home/user/dir / file .txt "
|
||||
└──────┴──────────────┴──────┴─────┘
|
||||
(all spaces in the "" line should be ignored -- they're purely for formatting)
|
||||
(all spaces in the "" line should be ignored -- they are purely for formatting)
|
||||
```
|
||||
|
||||
On Windows:
|
||||
@ -391,7 +391,7 @@ path.parse('C:\\path\\dir\\file.txt')
|
||||
│ root │ │ name │ ext │
|
||||
" C:\ path\dir \ file .txt "
|
||||
└──────┴──────────────┴──────┴─────┘
|
||||
(all spaces in the "" line should be ignored -- they're purely for formatting)
|
||||
(all spaces in the "" line should be ignored -- they are purely for formatting)
|
||||
```
|
||||
|
||||
A [`TypeError`][] is thrown if `path` is not a string.
|
||||
|
Loading…
Reference in New Issue
Block a user