aboutsummaryrefslogtreecommitdiff
path: root/node_modules/remove-trailing-separator/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/remove-trailing-separator/readme.md')
-rw-r--r--node_modules/remove-trailing-separator/readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/remove-trailing-separator/readme.md b/node_modules/remove-trailing-separator/readme.md
index 612fe3de4..747086af8 100644
--- a/node_modules/remove-trailing-separator/readme.md
+++ b/node_modules/remove-trailing-separator/readme.md
@@ -26,7 +26,7 @@ removeTrailingSeparator('///') // '/'
removeTrailingSeparator('') // ''
```
-## Backslash, or win32 separator
+## Notable backslash, or win32 separator behavior
`\` is considered a separator only on WIN32 systems. All POSIX compliant systems
see backslash as a valid file name character, so it would break POSIX compliance
@@ -35,7 +35,7 @@ to remove it there.
In practice, this means that this code will return different things depending on
what system it runs on:
-```
+```js
removeTrailingSeparator('\\foo\\')
// UNIX => '\\foo\\'
// WIN32 => '\\foo'