mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: fix typo in pathToFileURL example
PR-URL: https://github.com/nodejs/node/pull/33418 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
5fd500389e
commit
be2ff7e47e
1 file changed
+2
-2
+2
-2
@@ -999,8 +999,8 @@ pathToFileURL(__filename); // Correct: file:///C:/... (Windows)
|
||||
new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1
|
||||
pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX)
|
||||
|
||||
new URL('/some/path%.js', 'file:'); // Incorrect: file:///some/path%
|
||||
pathToFileURL('/some/path%.js'); // Correct: file:///some/path%25 (POSIX)
|
||||
new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
|
||||
pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
|
||||
```
|
||||
|
||||
## Legacy URL API
|
||||
|
||||
Reference in new issue
Block a user