diff options
-rw-r--r-- | core/src/color.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/color.rs b/core/src/color.rs index 4ac2f8a7..8a0a26ba 100644 --- a/core/src/color.rs +++ b/core/src/color.rs @@ -162,7 +162,7 @@ impl From<Color> for Srgba { } } -/// Calmps a float value to the range [0.0, 1.0] +/// Clamps a float value to the range [0.0, 1.0] pub fn clamp(v: f32) -> f32 { v.max(0.0f32).min(1.0f32) } |