doc: replace function expressions with arrows
authorBenjamin Gruenbaum <inglor@gmail.com>
Sun, 24 Jan 2016 09:15:51 +0000 (11:15 +0200)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit92dbcb4bb012d56b6acb64b91139f2413408de9b
treecb3c16759e4253859af6d4f93ecbfce15a22a949
parentcc849f5872dc77565e9ab754bf14b9d3696b0ade
doc: replace function expressions with arrows

This commit replaces multiple usages of `function(){}` with ES2015
arrow functions in places it was forgotten earlier. The goal is to
make the docs more consistent since other functions were already
replaced with ES2015 arrows.

In addition, it fixes invalid syntax in modules.markdown to valid
syntax as well as remove `var self = this` pattern usages in the code
where they are now possible to avoid through arrow functions.

PR-URL: https://github.com/nodejs/node/pull/4832
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
13 files changed:
doc/api/addons.markdown
doc/api/assert.markdown
doc/api/debugger.markdown
doc/api/domain.markdown
doc/api/events.markdown
doc/api/fs.markdown
doc/api/modules.markdown
doc/api/process.markdown
doc/api/readline.markdown
doc/api/repl.markdown
doc/api/stream.markdown
doc/api/util.markdown
doc/api/zlib.markdown