From 2300333e89124dcf1eb6ec23b833ea05585c0cb1 Mon Sep 17 00:00:00 2001 From: ZYSzys <17367077526@163.com> Date: Thu, 25 Oct 2018 11:16:24 +0800 Subject: [PATCH] doc: simplify path.basename() on POSIX and Windows PR-URL: https://github.com/nodejs/node/pull/23864 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Vse Mozhet Byt Reviewed-By: James M Snell --- doc/api/path.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/api/path.md b/doc/api/path.md index ab6039206fbd91..4a1cc8e8990717 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: