Skip to content

Commit 653f092

Browse files
watsonMylesBorins
authored andcommitted
doc: simplify process.memoryUsage() example code
Using util.inspect doesn't change the output in this case PR-URL: #9560 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent ad4cc36 commit 653f092

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/api/process.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1136,9 +1136,7 @@ of the Node.js process measured in bytes.
11361136
For example, the code:
11371137

11381138
```js
1139-
const util = require('util');
1140-
1141-
console.log(util.inspect(process.memoryUsage()));
1139+
console.log(process.memoryUsage());
11421140
```
11431141

11441142
Will generate:

0 commit comments

Comments
 (0)