Skip to content

Commit fdff642

Browse files
evanlucasMylesBorins
authored andcommitted
doc: fix util.deprecate() example
The arguments object is not created for arrow functions so the example was incorrect. PR-URL: #7674 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 8fec02f commit fdff642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/util.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Marks that a method should not be used any more.
5858
```js
5959
const util = require('util');
6060

61-
exports.puts = util.deprecate(() => {
61+
exports.puts = util.deprecate(function() {
6262
for (var i = 0, len = arguments.length; i < len; ++i) {
6363
process.stdout.write(arguments[i] + '\n');
6464
}

0 commit comments

Comments
 (0)