From fd4c05ab56fb40f4f855b76dca66f5c488207c68 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 9 Dec 2017 05:34:16 -0200 Subject: [PATCH] util: fix custom inspect description Using a custom inspect function on the inspected object is deprecated. Remove the reference from the option description to make sure the user will read about the deprecation in the more detailed description. Backport-PR-URL: https://github.com/nodejs/node/pull/19230 PR-URL: https://github.com/nodejs/node/pull/17576 Reviewed-By: Anna Henningsen --- doc/api/util.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 976621ddb383e3..a001124824f0a5 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -342,8 +342,7 @@ changes: codes. Defaults to `false`. Colors are customizable, see [Customizing `util.inspect` colors][]. * `customInspect` {boolean} If `false`, then custom `inspect(depth, opts)` - functions exported on the `object` being inspected will not be called. - Defaults to `true`. + functions will not be called. Defaults to `true`. * `showProxy` {boolean} If `true`, then objects and functions that are `Proxy` objects will be introspected to show their `target` and `handler` objects. Defaults to `false`.