Fix docstring typo

This commit is contained in:
Clark Moody 2020-03-31 16:12:18 -05:00
parent bb44398819
commit fd484c7638

View file

@ -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)
}