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>
This commit is contained in:
ZYSzys authored and Michaël Zasso committed 2018-11-01 21:47:11 +01:00
1 parent 49b32af5ab
commit e241398ef6
1 file changed
+1 -3
+1 -3
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: