Skip to content

Commit 765a23f

Browse files
committedAug 4, 2014
auto merge of #16233 : omasanori/rust/abs_sub, r=steveklabnik
Use proper argument names and unbackquote the word "zero" because it is not an identifier.
2 parents d3ac386 + 3e6edee commit 765a23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/libcore/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ pub fn abs<T: Signed>(value: T) -> T {
279279

280280
/// The positive difference of two numbers.
281281
///
282-
/// Returns `zero` if the number is less than or equal to `other`,
283-
/// otherwise the difference between `self` and `other` is returned.
282+
/// Returns zero if `x` is less than or equal to `y`, otherwise the difference
283+
/// between `x` and `y` is returned.
284284
#[inline(always)]
285285
pub fn abs_sub<T: Signed>(x: T, y: T) -> T {
286286
x.abs_sub(&y)

0 commit comments

Comments
 (0)
Please sign in to comment.