From ed24cb2d132d107241a0aeeb1156aa05ce7a36c7 Mon Sep 17 00:00:00 2001 From: Leko Date: Fri, 19 Jan 2018 01:20:18 +0900 Subject: [PATCH] doc: Add example of null to assert.ifError --- doc/api/assert.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/assert.md b/doc/api/assert.md index c3735440932e25..9a37d5f26c1e9b 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);