Skip to content

Commit f15d2d6

Browse files
committed
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 58b70d3 commit f15d2d6

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
@@ -52,7 +52,7 @@ it is marked as deprecated.
5252
```js
5353
const util = require('util');
5454

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

0 commit comments

Comments
 (0)