doc: simplify path.basename() on POSIX and Windows

PR-URL: https://github.com/nodejs/node/pull/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>
pull/23881/head
ZYSzys 2018-10-25 11:16:24 +08:00 committed by Rich Trott
parent 1523111250
commit 16673ae9dc
1 changed files with 1 additions and 3 deletions

View File

@ -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: