Skip to content

Commit

Permalink
doc: simplify path.basename() on POSIX and Windows
Browse files Browse the repository at this point in the history
PR-URL: #23864
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
ZYSzys authored and targos committed Oct 26, 2018
1 parent 50d54f5 commit 7a00c98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ on which a Node.js application is running. Specifically, when running on a
Windows operating system, the `path` module will assume that Windows-style
paths are being used.

For example, using the `path.basename()` function with the Windows file path
`C:\temp\myfile.html`, will yield different results when running on POSIX than
when run on Windows:
So using `path.basename()` might yield different results on POSIX and Windows:

On POSIX:

Expand Down

0 comments on commit 7a00c98

Please sign in to comment.