File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,12 @@ exactly how errors raised by those methods are propagated.
133
133
<!-- type=misc-->
134
134
135
135
Most asynchronous methods exposed by the Node.js core API follow an idiomatic
136
- pattern referred to as an _ error-first callback_ . With this pattern, a
137
- callback function is passed to the method as an argument. When the operation
138
- either completes or an error is raised, the callback function is called with
139
- the Error object (if any) passed as the first argument. If no error was raised,
140
- the first argument will be passed as ` null ` .
136
+ pattern referred to as an _ error-first callback_ (sometimes referred to as
137
+ a _ Node.js style callback_ ). With this pattern, a callback function is passed
138
+ to the method as an argument. When the operation either completes or an error
139
+ is raised, the callback function is called with
140
+ the Error object (if any) passed as the first argument. If no error was
141
+ raised, the first argument will be passed as ` null ` .
141
142
142
143
``` js
143
144
const fs = require (' fs' );
You can’t perform that action at this time.
0 commit comments