Skip to content

Commit 3894981

Browse files
Trotttargos
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 <vsemozhetbyt@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 8191ada commit 3894981

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
@@ -73,8 +73,8 @@ Please note that this will also deactivate the colors in the REPL.
7373
> Stability: 0 - Deprecated: Use strict mode instead.
7474
7575
When accessing `assert` directly instead of using the `strict` property, the
76-
[Abstract Equality Comparison][] will be used for any function without a
77-
"strict" in its name (e.g. [`assert.deepEqual()`][]).
76+
[Abstract Equality Comparison][] will be used for any function without "strict"
77+
in its name, such as [`assert.deepEqual()`][].
7878

7979
It can be accessed using:
8080

@@ -83,11 +83,9 @@ const assert = require('assert');
8383
```
8484

8585
It is recommended to use the [`strict mode`][] instead as the
86-
[Abstract Equality Comparison][] can often have surprising results. Especially
87-
in case of [`assert.deepEqual()`][] as the used comparison rules there are very
88-
lax.
89-
90-
E.g.
86+
[Abstract Equality Comparison][] can often have surprising results. This is
87+
especially true for [`assert.deepEqual()`][], where the comparison rules are
88+
lax:
9189

9290
```js
9391
// WARNING: This does not throw an AssertionError!

0 commit comments

Comments
 (0)