Skip to content

Commit 92bd19e

Browse files
watsonaddaleax
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 58fc7a1 commit 92bd19e

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
@@ -1182,9 +1182,7 @@ of the Node.js process measured in bytes.
11821182
For example, the code:
11831183

11841184
```js
1185-
const util = require('util');
1186-
1187-
console.log(util.inspect(process.memoryUsage()));
1185+
console.log(process.memoryUsage());
11881186
```
11891187

11901188
Will generate:

0 commit comments

Comments
 (0)