Skip to content

Commit

Permalink
doc: fix path markdown formatting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
joeycozza authored and cjihrig committed Aug 1, 2016
1 parent 6945aa7 commit 65a42ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down

0 comments on commit 65a42ab

Please sign in to comment.