diff --git a/README.md b/README.md index 648f369..662da21 100644 --- a/README.md +++ b/README.md @@ -134,13 +134,13 @@ let ratio_deref: f64 = *(l1 / l2); assert_eq!(ratio_value, ratio_deref); ``` ## Unchecked creation and conversion -If absolutely required, `.value_unchecked()` provides access to the underlying storage type for all quantities. This is not unit-safe since the return value will depend on the unit system! +If absolutely required, `.value_unchecked()` provides access to the underlying storage type for all quantities. This is **not unit-safe** since the return value will depend on the unit system! ```rust let length: Length = 5.0 * kilometers; let value: f64 = length.value_unchecked(); assert_eq!(value, 5000.0); // This only holds in SI units! ``` -Similarly, if absolutely required, new quantities can be constructed from storage types using `Quantity::new_unchecked`. This operation is also not unit-safe! +Similarly, if absolutely required, new quantities can be constructed from storage types using `Quantity::new_unchecked`. This operation is also **not unit-safe**! ```rust let length: Length = Length::new_unchecked(5000.0); assert_eq!(length, 5.0 * kilometers); // This only holds in SI units! diff --git a/src/lib.rs b/src/lib.rs index ec843d0..59de385 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,7 +159,7 @@ //! assert_eq!(ratio_value, ratio_deref); //! ``` //! ## Unchecked creation and conversion -//! If absolutely required, `.value_unchecked()` provides access to the underlying storage type for all quantities. This is not unit-safe since the return value will depend on the unit system! +//! If absolutely required, `.value_unchecked()` provides access to the underlying storage type for all quantities. This is **not unit-safe** since the return value will depend on the unit system! //! ``` //! # #![feature(generic_const_exprs)] //! # use diman::si::dimensions::{Length}; @@ -168,7 +168,7 @@ //! let value: f64 = length.value_unchecked(); //! assert_eq!(value, 5000.0); // This only holds in SI units! //! ``` -//! Similarly, if absolutely required, new quantities can be constructed from storage types using `Quantity::new_unchecked`. This operation is also not unit-safe! +//! Similarly, if absolutely required, new quantities can be constructed from storage types using `Quantity::new_unchecked`. This operation is also **not unit-safe**! //! ``` //! # #![feature(generic_const_exprs)] //! # use diman::si::dimensions::{Length};