Skip to content

Commit

Permalink
Remove ? operator from readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard authored Jul 28, 2024
1 parent 4f1f871 commit d1292c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use lambert_w::accurate::lambert_w_0;
use core::f64::consts::PI;
use approx::assert_abs_diff_eq;

let w = lambert_w_0(PI)?;
let w = lambert_w_0(PI).unwrap();

assert_abs_diff_eq!(w, 1.0736581947961492);
```
Expand All @@ -30,7 +30,7 @@ use lambert_w::fast::lambert_w_0;
use core::f64::consts::PI;
use approx::assert_abs_diff_eq;

let w = lambert_w_0(PI)?;
let w = lambert_w_0(PI).unwrap();

assert_abs_diff_eq!(w, 1.0736581947961492, epsilon = 1e-7);
```
Expand Down

0 comments on commit d1292c7

Please sign in to comment.