From bc7b71937cf08e8572777959f0074ec02f77ceb7 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 939dd52e4f623c..56ea9a474d8cb8 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -52,7 +52,7 @@ it is marked as deprecated. ```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'); }