Skip to content

Commit 21afd13

Browse files
committed
math: fix doc comment examples
1 parent 7d08554 commit 21afd13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/math/interpolation.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn clip[T](x T, min_value T, max_value T) T {
3636
}
3737

3838
// remap the input `x`, from the range [`a`,`b`] to [`c`,`d`] .
39-
// Example: math.remap(20, 1, 100, 50, 5000) == 1000
39+
// Example: assert math.remap(20, 1, 100, 50, 5000) == 1000
4040
// Note: `a` should be != `b`.
4141
@[inline]
4242
pub fn remap[T](x T, a T, b T, c T, d T) T {

0 commit comments

Comments
 (0)