From 91ed031fa413557e009bde81d3998ebb3ef3fb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Fri, 4 Oct 2024 20:08:59 +0200 Subject: [PATCH] Proper whitespace around codeblocks. Make trait example a proper code block. --- README.md | 1 + src/lib.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 0aa4221..fb68c70 100644 --- a/README.md +++ b/README.md @@ -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; diff --git a/src/lib.rs b/src/lib.rs index 55c4503..7f14dc7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)); +``` "# )] //!