Comment only: add a FIXME on int::abs
This commit is contained in:
parent
f717100fc7
commit
1226669172
@ -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 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user