From 2c0f1edfd535c489107b644b28f1ade59c6a8d84 Mon Sep 17 00:00:00 2001 From: Shobhit Chittora Date: Thu, 14 Nov 2019 17:37:11 +0530 Subject: [PATCH] doc: adds assert doc for strict mode with pointer to strict equality Refs: https://github.com/nodejs/node/issues/30485 PR-URL: https://github.com/nodejs/node/pull/30486 Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil --- doc/api/assert.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index b0c8c378e64b9b..9d1a7fb7e169ea 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -80,9 +80,9 @@ changes: description: Added strict mode to the assert module. --> -In `strict` mode, `assert` functions use the comparison in the corresponding -strict functions. For example, [`assert.deepEqual()`][] will behave like -[`assert.deepStrictEqual()`][]. +In `strict` mode (not to be confused with `"use strict"`), `assert` functions +use the comparison in the corresponding strict functions. For example, +[`assert.deepEqual()`][] will behave like [`assert.deepStrictEqual()`][]. In `strict` mode, error messages for objects display a diff. In legacy mode, error messages for objects display the objects, often truncated.