Skip to content

Commit 65a42ab

Browse files
joeycozzacjihrig
authored andcommitted
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: #7817 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Claudio Rodriguez <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6945aa7 commit 65a42ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

β€Ždoc/api/path.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ path.parse('/home/user/dir/file.txt')
367367
β”‚ root β”‚ β”‚ name β”‚ ext β”‚
368368
" / home/user/dir / file .txt "
369369
β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”˜
370-
(all spaces in the "" line should be ignored -- they're purely for formatting)
370+
(all spaces in the "" line should be ignored -- they are purely for formatting)
371371
```
372372

373373
On Windows:
@@ -391,7 +391,7 @@ path.parse('C:\\path\\dir\\file.txt')
391391
β”‚ root β”‚ β”‚ name β”‚ ext β”‚
392392
" C:\ path\dir \ file .txt "
393393
β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”˜
394-
(all spaces in the "" line should be ignored -- they're purely for formatting)
394+
(all spaces in the "" line should be ignored -- they are purely for formatting)
395395
```
396396

397397
A [`TypeError`][] is thrown if `path` is not a string.

0 commit comments

Comments
Β (0)