Skip to content

Commit bf95392

Browse files
TrottBethGriggs
authored andcommitted
doc: improve assert legacy text
This changes a sentence fragment into a full sentence and provides a few other minor improvements. PR-URL: #19622 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Shingo Inoue <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e48cc3c commit bf95392

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

doc/api/assert.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const assert = require('assert').strict;
3737
> Stability: 0 - Deprecated: Use strict mode instead.
3838
3939
When accessing `assert` directly instead of using the `strict` property, the
40-
[Abstract Equality Comparison][] will be used for any function without a
41-
"strict" in its name (e.g. [`assert.deepEqual()`][]).
40+
[Abstract Equality Comparison][] will be used for any function without "strict"
41+
in its name, such as [`assert.deepEqual()`][].
4242

4343
It can be accessed using:
4444

@@ -47,11 +47,9 @@ const assert = require('assert');
4747
```
4848

4949
It is recommended to use the [`strict mode`][] instead as the
50-
[Abstract Equality Comparison][] can often have surprising results. Especially
51-
in case of [`assert.deepEqual()`][] as the used comparison rules there are very
52-
lax.
53-
54-
E.g.
50+
[Abstract Equality Comparison][] can often have surprising results. This is
51+
especially true for [`assert.deepEqual()`][], where the comparison rules are
52+
lax:
5553

5654
```js
5755
// WARNING: This does not throw an AssertionError!

0 commit comments

Comments
 (0)