From deed4e6a8b75b5a955799cefb1623e74f2ed183c Mon Sep 17 00:00:00 2001 From: Evan Lucas Date: Tue, 12 Jul 2016 06:56:08 -0500 Subject: [PATCH] doc: fix util.deprecate() example The arguments object is not created for arrow functions so the example was incorrect. PR-URL: https://github.com/nodejs/node/pull/7674 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- doc/api/util.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/util.md b/doc/api/util.md index 3f9165f02110af..d3d26dbb946774 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -58,7 +58,7 @@ Marks that a method should not be used any more. ```js const util = require('util'); -exports.puts = util.deprecate(() => { +exports.puts = util.deprecate(function() { for (var i = 0, len = arguments.length; i < len; ++i) { process.stdout.write(arguments[i] + '\n'); }