m1!{...} -> m1!(...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user