Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7d0c1bf

Browse filesBrowse 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 <cjihrig@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ddf292f commit 7d0c1bf
Copy full SHA for 7d0c1bf

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

β€Ždoc/api/path.mdβ€Ž

Copy file name to clipboardExpand all lines: doc/api/path.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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Β (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.