From e241398ef6fa672d50eadd31ef1153dd70e3d247 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 2a1f06028ee6f4..c04bff0c476f46 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: