From 653f092639e7aca9757982328af0ad9e07b1cd2e Mon Sep 17 00:00:00 2001 From: Thomas Watson Steen Date: Sat, 12 Nov 2016 12:17:52 +0900 Subject: [PATCH] doc: simplify process.memoryUsage() example code Using util.inspect doesn't change the output in this case PR-URL: https://github.com/nodejs/node/pull/9560 Reviewed-By: Myles Borins Reviewed-By: Rich Trott Reviewed-By: Roman Reiss Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen --- doc/api/process.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 15e0ecedc3..89443daeda 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1136,9 +1136,7 @@ of the Node.js process measured in bytes. For example, the code: ```js -const util = require('util'); - -console.log(util.inspect(process.memoryUsage())); +console.log(process.memoryUsage()); ``` Will generate: