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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Evan Lucas authored and Myles Borins committed 2016-10-26 14:08:54 -04:00
1 parent 8fec02ffb8
commit fdff642e0b
1 file changed
+1 -1
+1 -1
View File
@@ -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');
}