Skip to content

Commit

Permalink
Add comment explaining assert_abs_diff_eq!
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Jul 29, 2024
1 parent 3df0747 commit 4a615e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
doc = r##"
```
use lambert_w::accurate::lambert_w_0;
// This macro is used in the documentation examples of this crate.
// It passes the assertion if the two supplied values are the same to within floating point error,
// or within an optional epsilon.
use approx::assert_abs_diff_eq;
let w = lambert_w_0(1.0).unwrap();
Expand Down

0 comments on commit 4a615e3

Please sign in to comment.