diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 53491cf21425e..2b7249aca1247 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -279,8 +279,8 @@ pub fn abs(value: T) -> T { /// The positive difference of two numbers. /// -/// Returns `zero` if the number is less than or equal to `other`, -/// otherwise the difference between `self` and `other` is returned. +/// Returns zero if `x` is less than or equal to `y`, otherwise the difference +/// between `x` and `y` is returned. #[inline(always)] pub fn abs_sub(x: T, y: T) -> T { x.abs_sub(&y)