diff options
author | ZYSzys <17367077526@163.com> | 2018-10-25 06:16:24 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-11-29 19:39:14 +0300 |
commit | abeba5f8b5211856ec85c3c66a9307615daf43b8 (patch) | |
tree | 116548ec542a6254ae4715f35fc9f41e1f2aee49 /doc | |
parent | d830033274b34748a3e849683a70614ca56d537f (diff) |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/path.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/api/path.md b/doc/api/path.md index 2a1f06028ee..c04bff0c476 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -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: |