浏览代码

s/less/greater/g

Toshiki Teramura 5 年之前
父节点
当前提交
0e7c2a4a00
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -387,7 +387,7 @@ pub fn clamp_min<T: PartialOrd>(input: T, min: T) -> T {
 
 /// A value bounded by a maximum value
 ///
-///  If input is less than min then this returns min.
+///  If input is greater than max then this returns max.
 ///  Otherwise this returns input.
 ///  `clamp_max(std::f32::NAN, 1.0)` preserves `NAN` different from `f32::max(std::f32::NAN, 1.0)`.
 #[inline]