diff options
Diffstat (limited to 'doc/api')
-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. |