Permalink
Browse files

doc: remove _Node.js style callback_

We refer to them only as _error-first callbacks_ in our docs. We don't
call them _Node.js style callbacks_ so let's take this opporutnity to
keep things a bit more concise

PR-URL: #21701
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information...
Trott committed Jul 7, 2018
1 parent b794d37 commit 01eee530e3a8dc7cabdb5a6870ba6fe2367ec581
Showing with 5 additions and 6 deletions.
  1. +5 −6 doc/api/errors.md
@@ -127,12 +127,11 @@ exactly how errors raised by those methods are propagated.
<!--type=misc-->
Most asynchronous methods exposed by the Node.js core API follow an idiomatic
pattern referred to as an _error-first callback_ (sometimes referred to as
a _Node.js style callback_). With this pattern, a callback function is passed
to the method as an argument. When the operation either completes or an error
is raised, the callback function is called with
the `Error` object (if any) passed as the first argument. If no error was
raised, the first argument will be passed as `null`.
pattern referred to as an _error-first callback_. With this pattern, a callback
function is passed to the method as an argument. When the operation either
completes or an error is raised, the callback function is called with the
`Error` object (if any) passed as the first argument. If no error was raised,
the first argument will be passed as `null`.
```js
const fs = require('fs');

0 comments on commit 01eee53

Please sign in to comment.