From 3e6edee002ea3edd3e367161fabe25b075e5e3be Mon Sep 17 00:00:00 2001 From: OGINO Masanori Date: Mon, 4 Aug 2014 14:00:45 +0900 Subject: num: Fix the documentation of abs_sub. Use proper argument names and unbackquote the word "zero" because it is not an identifier. Signed-off-by: OGINO Masanori --- src/libcore/num/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 53491cf2142..2b7249aca12 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) -- cgit 1.4.1-3-g733a5