summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Clark Moody <clark@clarkmoody.com>2020-03-31 16:12:18 -0500
committerLibravatar Clark Moody <clark@clarkmoody.com>2020-04-24 15:13:22 -0500
commitfd484c76381cd77fdd485939f6435df115f1ca65 (patch)
tree78dc3a8641fb98d9752ab8c355440cd29dc40e58 /core
parentbb443988197ecfbb1effe9ae73ec5533db7e3339 (diff)
downloadiced-fd484c76381cd77fdd485939f6435df115f1ca65.tar.gz
iced-fd484c76381cd77fdd485939f6435df115f1ca65.tar.bz2
iced-fd484c76381cd77fdd485939f6435df115f1ca65.zip
Fix docstring typo
Diffstat (limited to 'core')
-rw-r--r--core/src/color.rs2
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)
}