From 82a6ab2f30eed4ab5d7afc87385df0380c92ee80 Mon Sep 17 00:00:00 2001 From: Emerentius Date: Mon, 7 Sep 2015 16:50:58 +0200 Subject: [PATCH] comment corrected referenced a,b, which aren't defined changed to n,m --- src/integer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/integer.rs b/src/integer.rs index 02fce52..dd142a6 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -230,7 +230,7 @@ macro_rules! impl_integer_for_isize { // trivially be calculated in that case by bitshifting // The result is always positive in two's complement, unless - // a and b are the minimum value, then it's negative + // n and m are the minimum value, then it's negative // no other way to represent that number if m == <$T>::min_value() || n == <$T>::min_value() { return 1 << shift } @@ -238,7 +238,7 @@ macro_rules! impl_integer_for_isize { m = m.abs(); n = n.abs(); - // divide a and b by 2 until odd + // divide n and m by 2 until odd // m inside loop n >>= n.trailing_zeros(); @@ -427,7 +427,7 @@ macro_rules! impl_integer_for_usize { // find common factors of 2 let shift = (m | n).trailing_zeros(); - // divide a and b by 2 until odd + // divide n and m by 2 until odd // m inside loop n >>= n.trailing_zeros();