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 committed Jul 15, 2016
1 parent 58b70d3 commit f15d2d6
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 @@ -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');
}
Expand Down

0 comments on commit f15d2d6

Please sign in to comment.