Skip to content

Commit 4b6297a

Browse files
Lekoevanlucas
authored andcommitted
doc: Add example of null to assert.ifError
PR-URL: #18236 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 3b9ef21 commit 4b6297a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/assert.md

+2
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ argument in callbacks.
375375
```js
376376
const assert = require('assert');
377377

378+
assert.ifError(null);
379+
// OK
378380
assert.ifError(0);
379381
// OK
380382
assert.ifError(1);

0 commit comments

Comments
 (0)