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 <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
ZYSzys authored and MylesBorins committed Nov 26, 2018
1 parent 09faedf commit 28ee410
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 28ee410

Please sign in to comment.