From: Josh Simmons Date: Sat, 16 Nov 2024 15:16:54 +0000 (+0100) Subject: narcissus-maths: Fix accidental link in doc comments X-Git-Url: https://git.nega.tv//gitweb.cgi?a=commitdiff_plain;h=e3df65cd91c86fea4a2e86ecc1b1ac20bded5116;p=josh%2Fnarcissus narcissus-maths: Fix accidental link in doc comments --- diff --git a/engine/narcissus-maths/src/lib.rs b/engine/narcissus-maths/src/lib.rs index a040184..97fb55e 100644 --- a/engine/narcissus-maths/src/lib.rs +++ b/engine/narcissus-maths/src/lib.rs @@ -215,9 +215,9 @@ pub fn lerp(t: f32, a: f32, b: f32) -> f32 { /// # Notes /// /// `f32::to_int_unchecked` can lead to UB when converting an `x` that: -/// * Is Inf -/// * Is NaN -/// * Would produce a value that is out of bounds for +/// * Is `Inf` +/// * Is `NaN` +/// * Would produce a value that is out of bounds for `T` /// /// This function performs the same operation, but returns an implementation /// defined value for these cases. @@ -243,9 +243,9 @@ pub fn f32_to_i32(x: f32) -> i32 { /// # Notes /// /// `f32::to_int_unchecked` can lead to UB when converting an `x` that: -/// * Is Inf -/// * Is NaN -/// * Would produce a value that is out of bounds for +/// * Is `Inf` +/// * Is `NaN` +/// * Would produce a value that is out of bounds for `T` /// /// This function performs the same operation, but returns an implementation /// defined value for these cases.