Skip to content

Commit 9afdc09

Browse files
ZYSzysrvagg
authored andcommitted
doc: simplify path.basename() on POSIX and Windows
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]>
1 parent 85a6dae commit 9afdc09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/api/path.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ on which a Node.js application is running. Specifically, when running on a
1818
Windows operating system, the `path` module will assume that Windows-style
1919
paths are being used.
2020

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

2523
On POSIX:
2624

0 commit comments

Comments
 (0)