math: fix doc comment examples

This commit is contained in:
Delyan Angelov 2025-08-13 18:00:18 +03:00
parent 7d08554c3c
commit 21afd13d50
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -36,7 +36,7 @@ pub fn clip[T](x T, min_value T, max_value T) T {
} }
// remap the input `x`, from the range [`a`,`b`] to [`c`,`d`] . // remap the input `x`, from the range [`a`,`b`] to [`c`,`d`] .
// Example: math.remap(20, 1, 100, 50, 5000) == 1000 // Example: assert math.remap(20, 1, 100, 50, 5000) == 1000
// Note: `a` should be != `b`. // Note: `a` should be != `b`.
@[inline] @[inline]
pub fn remap[T](x T, a T, b T, c T, d T) T { pub fn remap[T](x T, a T, b T, c T, d T) T {