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:
parent
4b9a0e4133
commit
bc7b71937c
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user