Skip to content
Closed
Prev Previous commit
docs: explain why path.posix.normalize does not replace windows slashes
Clarify "platform specific separator"

Fixes: #12298
  • Loading branch information
sjlehn committed Apr 28, 2017
commit cb7d451ae9a203089659c140eb309685daf5f9aa
4 changes: 2 additions & 2 deletions doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ The `path.normalize()` method normalizes the given `path`, resolving `'..'` and

When multiple, sequential path segment separation characters are found (e.g.
`/` on POSIX and either `\` or `/` on Windows), they are replaced by a single
instance of the platform specific path segment separator. Trailing separators
are preserved.
instance of the platform specific path segment separator (`/` on POSIX and
`\` on Windows). Trailing separators are preserved.

If the `path` is a zero-length string, `'.'` is returned, representing the
current working directory.
Expand Down