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:
authorTimothy Gu <timothygu99@gmail.com>2016-08-30 08:35:03 +0300
committerLuigi Pinca <luigipinca@gmail.com>2016-09-14 09:08:28 +0300
commite1ddcb7219c8900473ecc343db2db86984d1688d (patch)
tree7a14f2e7bcfa77232b06c772772ba0d2c34bc818 /doc/api/path.md
parentad1a9dd35a7d0490f2993a4559d2616f8c4f4c7e (diff)
doc: standardize rest parameters
PR-URL: https://github.com/nodejs/node/pull/8485 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/path.md')
-rw-r--r--doc/api/path.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/path.md b/doc/api/path.md
index eb7d9766bc4..e99d34f1e34 100644
--- a/doc/api/path.md
+++ b/doc/api/path.md
@@ -272,12 +272,12 @@ path.isAbsolute('.') // false
A [`TypeError`][] is thrown if `path` is not a string.
-## path.join([path[, ...]])
+## path.join([...paths])
<!-- YAML
added: v0.1.16
-->
-* `[path[, ...]]` {String} A sequence of path segments
+* `...paths` {String} A sequence of path segments
The `path.join()` method join all given `path` segments together using the
platform specific separator as a delimiter, then normalizes the resulting path.
@@ -438,12 +438,12 @@ path.relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb')
A [`TypeError`][] is thrown if neither `from` nor `to` is a string.
-## path.resolve([path[, ...]])
+## path.resolve([...paths])
<!-- YAML
added: v0.3.4
-->
-* `[path[, ...]]` {String} A sequence of paths or path segments
+* `...paths` {String} A sequence of paths or path segments
The `path.resolve()` method resolves a sequence of paths or path segments into
an absolute path.