From 3bc6f35c24f2190b59830f26a475240008b87e1a Mon Sep 17 00:00:00 2001
From: Peter Dalgaard-Jensen <nephross.cortex@gmail.com>
Date: Wed, 24 Jan 2018 16:54:14 +0100
Subject: [PATCH] doc: include null as a return value for
 require.resolve.paths()

Update documentation of modules.md for require.resolve.paths()
to include the possibillity of null as a return value if
the request string given matches a core module name.

Fixes: https://github.com/nodejs/node/issues/18230
---
 doc/api/modules.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/api/modules.md b/doc/api/modules.md
index 64048cebe87855..157ec3b6f715b9 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -626,9 +626,11 @@ added: v8.9.0
 -->
 
 * `request` {string} The module path whose lookup paths are being retrieved.
-* Returns: {Array}
+* Returns: {Array|null}
 
-Returns an array containing the paths searched during resolution of `request`.
+Returns an array containing the paths searched during resolution of `request` or
+null if the `request` string references a core module, for example `http` or
+`fs`.
 
 ## The `module` Object
 <!-- YAML