m1!{...} -> m1!(...)

This commit is contained in:
Paul Stansifer
2012-08-22 17:24:52 -07:00
parent 226fd87199
commit 29f32b4a72
380 changed files with 5330 additions and 2706 deletions

View File

@@ -27,7 +27,7 @@ fn mk<T: copy>() -> smallintmap<T> {
*/
#[inline(always)]
fn insert<T: copy>(self: smallintmap<T>, key: uint, val: T) {
//io::println(fmt!{"%?", key});
//io::println(fmt!("%?", key));
self.v.grow_set_elt(key, none, some(val));
}
@@ -50,7 +50,7 @@ pure fn find<T: copy>(self: smallintmap<T>, key: uint) -> option<T> {
pure fn get<T: copy>(self: smallintmap<T>, key: uint) -> T {
match find(self, key) {
none => {
error!{"smallintmap::get(): key not present"};
error!("smallintmap::get(): key not present");
fail;
}
some(v) => return v