diff options
author | Leko <leko.noor@gmail.com> | 2018-01-19 01:20:18 +0900 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-01-21 02:32:45 +0100 |
commit | 08ada72cc692163979f574ee00de81cbfd730994 (patch) | |
tree | f5afc781bd8a578ee4fd56138b2f24a202a8b825 /doc/api/assert.md | |
parent | 143b235274945738774eea93a811f624a4fd2121 (diff) | |
download | android-node-v8-08ada72cc692163979f574ee00de81cbfd730994.tar.gz android-node-v8-08ada72cc692163979f574ee00de81cbfd730994.tar.bz2 android-node-v8-08ada72cc692163979f574ee00de81cbfd730994.zip |
doc: Add example of null to assert.ifError
PR-URL: https://github.com/nodejs/node/pull/18236
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/assert.md')
-rw-r--r-- | doc/api/assert.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index c373544093..9a37d5f26c 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -442,6 +442,8 @@ argument in callbacks. ```js const assert = require('assert').strict; +assert.ifError(null); +// OK assert.ifError(0); // OK assert.ifError(1); |