mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
math: fix doc comment examples
This commit is contained in:
parent
7d08554c3c
commit
21afd13d50
1 changed files with 1 additions and 1 deletions
|
@ -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`] .
|
||||
// Example: math.remap(20, 1, 100, 50, 5000) == 1000
|
||||
// Example: assert math.remap(20, 1, 100, 50, 5000) == 1000
|
||||
// Note: `a` should be != `b`.
|
||||
@[inline]
|
||||
pub fn remap[T](x T, a T, b T, c T, d T) T {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue