[algo] Fix typo

master
Lorenzo Cogotti 1 year ago
parent 9fa38d17a2
commit 08ac115ea2

@ -14,7 +14,7 @@ local algo = {}
-- --
-- @number x value to clamp. -- @number x value to clamp.
-- @number a interval lower bound (inclusive). -- @number a interval lower bound (inclusive).
-- @number b interval upper bound (includive). -- @number b interval upper bound (inclusive).
-- @treturn number clamped value. -- @treturn number clamped value.
function algo.clamp(x, a, b) return min(max(x, a), b) end function algo.clamp(x, a, b) return min(max(x, a), b) end

Loading…
Cancel
Save