diff options
author | Shobhit Chittora <chittorashobhit@gmail.com> | 2019-11-14 15:07:11 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-12-09 12:23:04 +0300 |
commit | 2c0f1edfd535c489107b644b28f1ade59c6a8d84 (patch) | |
tree | f34cc788ad0e8a3f313c62cc154435dd5a509d7b | |
parent | 60b1e1ad6197d3f4db94b33a8adb4d6569bc7114 (diff) |
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 <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
-rw-r--r-- | doc/api/assert.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index b0c8c378e64..9d1a7fb7e16 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. |