mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
8fec02ffb8
commit
fdff642e0b
1 file changed
+1
-1
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user