GeezerVison is showing github.com — doc: remove _Node.js style callback_ · nodejs/node@1044baf
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/errors.md +5-6Lines changed: 5 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -127,12 +127,11 @@ exactly how errors raised by those methods are propagated. |
127 | 127 | <!--type=misc--> |
128 | 128 |
|
129 | 129 | Most asynchronous methods exposed by the Node.js core API follow an idiomatic |
130 | | -pattern referred to as an _error-first callback_ (sometimes referred to as |
131 | | -a _Node.js style callback_). With this pattern, a callback function is passed |
132 | | -to the method as an argument. When the operation either completes or an error |
133 | | -is raised, the callback function is called with |
134 | | -the `Error` object (if any) passed as the first argument. If no error was |
135 | | -raised, the first argument will be passed as `null`. |
| 130 | +pattern referred to as an _error-first callback_. With this pattern, a callback |
| 131 | +function is passed to the method as an argument. When the operation either |
| 132 | +completes or an error is raised, the callback function is called with the |
| 133 | +`Error` object (if any) passed as the first argument. If no error was raised, |
| 134 | +the first argument will be passed as `null`. |
136 | 135 |
|
137 | 136 | ```js |
138 | 137 | const fs = require('fs'); |
|