Skip to content

Commit

Permalink
doc: fix util.deprecate() example
Browse files Browse the repository at this point in the history
The arguments object is not created for arrow functions so the example
was incorrect.

PR-URL: #7674
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
evanlucas authored and Myles Borins committed Sep 28, 2016
1 parent fea4a1c commit 8aea06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 8aea06e

Please sign in to comment.