Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du HAMEL <duhamelantoine1995@gmail.com>2020-05-15 11:26:20 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2020-05-23 19:21:43 +0300
commita3f47b111499416e5d164c5957af4f504a9e3c48 (patch)
tree1a08bf197110a6eb091fde29b5db5102fcf191e9 /doc/api/url.md
parentf25153333533e8d328374df658786239c4d4aff3 (diff)
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>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r--doc/api/url.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index 3da8adbe856..1e9649d5b60 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -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