Skip to content

Commit

Permalink
doc: replace functions with arrow functions
Browse files Browse the repository at this point in the history
PR-URL: #6203
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
hiroppy authored and Myles Borins committed Apr 20, 2016
1 parent fa04dfc commit dc1552e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/errors.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ allowable type. For example, passing a function to a parameter which expects a
string would be considered a TypeError.

```js
require('url').parse(function() { });
require('url').parse(() => { });
// throws TypeError, since it expected a string
```

Expand Down
2 changes: 1 addition & 1 deletion doc/api/vm.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ context. The primary use case is to get access to the V8 debug object:

```js
const Debug = vm.runInDebugContext('Debug');
Debug.scripts().forEach(function(script) { console.log(script.name); });
Debug.scripts().forEach((script) => { console.log(script.name); });
```

Note that the debug context and object are intrinsically tied to V8's debugger
Expand Down

0 comments on commit dc1552e

Please sign in to comment.