Skip to content

Commit 3958388

Browse files
author
Mandeep Singh
committed
doc: use strictEqual instead of equal
1 parent d4c6b23 commit 3958388

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ commonly indicate inequality of actual and expected parameters.
366366
For example:
367367

368368
```js
369-
assert.equal(1, 2);
370-
// AssertionError [ERR_ASSERTION]: 1 == 2
369+
assert.strictEqual(1, 2);
370+
// AssertionError [ERR_ASSERTION]: 1 === 2
371371
```
372372

373373
## Class: RangeError

0 commit comments

Comments
 (0)