From c34a7472d2329d01652d0452c332db6a75a6a430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 25 Jun 2017 21:31:54 +0200 Subject: [PATCH] doc: fix mistake in path.relative The docs implied that the parameters `from` and `to` are invalid only if neither of them is a string; in fact, they are invalid as soon as one of them is not a string. PR-URL: https://github.com/nodejs/node/pull/13912 Reviewed-By: Refael Ackermann Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: David Cai Reviewed-By: Michael Dawson Reviewed-By: Vse Mozhet Byt --- doc/api/path.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/path.md b/doc/api/path.md index 27ca6be6fed7ac..dfe68f1d3cfcb6 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -447,7 +447,7 @@ path.relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb'); // Returns: '..\\..\\impl\\bbb' ``` -A [`TypeError`][] is thrown if neither `from` nor `to` is a string. +A [`TypeError`][] is thrown if either `from` or `to` is not a string. ## path.resolve([...paths])