From 9ff5212d5f3f2bd92209c70b8f1f45a79bcd2b60 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 a5c5af6d068704..f951a4ab8a5b1a 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -466,7 +466,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])