From 1e8d1200cecb6fd6d4edc4586df3bb0a828e3bb6 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/18236 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- doc/api/assert.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/assert.md b/doc/api/assert.md index 779c6cd205ec91..b18ddc8e3c58a7 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -254,6 +254,8 @@ argument in callbacks. ```js const assert = require('assert'); +assert.ifError(null); +// OK assert.ifError(0); // OK assert.ifError(1);