]> git.nega.tv - josh/narcissus/commitdiff
narcissus-maths: Fix accidental link in doc comments
authorJosh Simmons <josh@nega.tv>
Sat, 16 Nov 2024 15:16:54 +0000 (16:16 +0100)
committerJosh Simmons <josh@nega.tv>
Sat, 16 Nov 2024 15:16:54 +0000 (16:16 +0100)
engine/narcissus-maths/src/lib.rs

index a040184d446eea181c319af49906dbbaf213b83f..97fb55ef3929c2773556267671daeb81dbfc3e1c 100644 (file)
@@ -215,9 +215,9 @@ pub fn lerp(t: f32, a: f32, b: f32) -> f32 {
 /// # Notes
 ///
 /// `f32::to_int_unchecked<T>` can lead to UB when converting an `x` that:
-///   * Is Inf
-///   * Is NaN
-///   * Would produce a value that is out of bounds for <T>
+///   * 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<T>` can lead to UB when converting an `x` that:
-///   * Is Inf
-///   * Is NaN
-///   * Would produce a value that is out of bounds for <T>
+///   * 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.