Skip to content

Commit fd4c05a

Browse files
BridgeARMylesBorins
authored andcommitted
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: #19230 PR-URL: #17576 Reviewed-By: Anna Henningsen <[email protected]>
1 parent b35eabb commit fd4c05a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/util.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ changes:
342342
codes. Defaults to `false`. Colors are customizable, see
343343
[Customizing `util.inspect` colors][].
344344
* `customInspect` {boolean} If `false`, then custom `inspect(depth, opts)`
345-
functions exported on the `object` being inspected will not be called.
346-
Defaults to `true`.
345+
functions will not be called. Defaults to `true`.
347346
* `showProxy` {boolean} If `true`, then objects and functions that are
348347
`Proxy` objects will be introspected to show their `target` and `handler`
349348
objects. Defaults to `false`.

0 commit comments

Comments
 (0)