Comment only: add a FIXME on int::abs

This commit is contained in:
Tim Chevalier 2012-05-04 11:47:37 -07:00
parent f717100fc7
commit 1226669172

View File

@ -46,6 +46,7 @@ fn range(lo: T, hi: T, it: fn(T)) {
}
#[doc = "Computes the absolute value"]
// FIXME: abs should return an unsigned int (#2353)
pure fn abs(i: T) -> T {
if is_negative(i) { -i } else { i }
}