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

@@ -10,7 +10,7 @@ class cat : map<int, bool> {
let mut meows : int;
fn meow() {
self.meows += 1;
error!{"Meow %d", self.meows};
error!("Meow %d", self.meows);
if self.meows % 5 == 0 {
self.how_hungry += 1;
}
@@ -27,12 +27,12 @@ class cat : map<int, bool> {
fn eat() -> bool {
if self.how_hungry > 0 {
error!{"OM NOM NOM"};
error!("OM NOM NOM");
self.how_hungry -= 2;
return true;
}
else {
error!{"Not hungry!"};
error!("Not hungry!");
return false;
}
}