We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3ac386 + 3e6edee commit 765a23fCopy full SHA for 765a23f
src/libcore/num/mod.rs
@@ -279,8 +279,8 @@ pub fn abs<T: Signed>(value: T) -> T {
279
280
/// The positive difference of two numbers.
281
///
282
-/// Returns `zero` if the number is less than or equal to `other`,
283
-/// 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.
284
#[inline(always)]
285
pub fn abs_sub<T: Signed>(x: T, y: T) -> T {
286
x.abs_sub(&y)
0 commit comments