Skip to content

Commit 27228e8

Browse files
xfumihirocpojer
authored andcommitted
Fix doc (#4792)
1 parent ad11447 commit 27228e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/UsingMatchers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ For floating point equality, use `toBeCloseTo` instead of `toEqual`, because you
9898
```js
9999
test('adding floating point numbers', () => {
100100
const value = 0.1 + 0.2;
101-
expect(value).not.toBe(0.3); // It isn't! Because rounding error
101+
//expect(value).toBe(0.3); This won't work because of rounding error
102102
expect(value).toBeCloseTo(0.3); // This works.
103103
});
104104
```

0 commit comments

Comments
 (0)