remove remaining is_not_empty functions/methods

This commit is contained in:
Daniel Micay
2013-01-24 23:24:57 -05:00
parent ec3f6e1932
commit e4337a9def
18 changed files with 17 additions and 54 deletions

View File

@@ -84,7 +84,7 @@ terminate normally, but instead directly return from a function.
~~~
fn choose_weighted_item(v: &[Item]) -> Item {
assert v.is_not_empty();
assert !v.is_empty();
let mut so_far = 0u;
for v.each |item| {
so_far += item.weight;