Skip to content

Commit

Permalink
Proper whitespace around codeblocks. Make trait example a proper code…
Browse files Browse the repository at this point in the history
… block.
  • Loading branch information
JSorngard committed Oct 4, 2024
1 parent adaff39 commit 91ed031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ assert_relative_eq!(tiny, -715.7695669234213, max_relative = 4e-16);
```

Importing the `LambertW` trait lets you call the functions with postfix notations:

```rust
use lambert_w::LambertW;

Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,17 @@ 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#"
```
use lambert_w::LambertW;
let z = 2.0 * f64::ln(2.0);
assert_abs_diff_eq!(z.lambert_w0(), f64::ln(2.0));
```
"#
)]
//!
Expand Down

0 comments on commit 91ed031

Please sign in to comment.