Skip to content

Commit

Permalink
Fix trait example
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 4, 2024
1 parent 70dcc8e commit f0521b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,16 @@ assert_relative_eq!(tiny, -715.7695669234213, max_relative = 4e-16);
)]
//!
//! Importing the [`LambertW`] trait lets you call the functions with postfix notations:
#![cfg_attr(feature = "50bits"), doc = r#"
#![cfg_attr(
feature = "50bits",
doc = r#"
use lambert_w::LambertW;
let z = 2.0 * f64::ln(2.0);
assert_abs_diff_eq!(z.lambert_w0(), f64::ln(2.0));
"#]
"#
)]
//!
//! The macros are from the [`approx`](https://docs.rs/approx/latest/approx/) crate, and are used in the documentation examples of this crate.
//! The assertion passes if the two supplied values are the same to within floating point error, or within an optional epsilon or relative difference.
Expand Down

0 comments on commit f0521b6

Please sign in to comment.