m1!{...}
-> m1!(...)
This commit is contained in:
parent
226fd87199
commit
29f32b4a72
380 changed files with 5330 additions and 2706 deletions
|
@ -6,7 +6,7 @@ struct cat {
|
|||
priv {
|
||||
let mut meows : uint;
|
||||
fn meow() {
|
||||
error!{"Meow"};
|
||||
error!("Meow");
|
||||
self.meows += 1u;
|
||||
if self.meows % 5u == 0u {
|
||||
self.how_hungry += 1;
|
||||
|
@ -24,12 +24,12 @@ struct cat {
|
|||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ impl cat: ToStr {
|
|||
|
||||
fn print_out<T: ToStr>(thing: T, expected: ~str) {
|
||||
let actual = thing.to_str();
|
||||
debug!{"%s", actual};
|
||||
debug!("%s", actual);
|
||||
assert(actual == expected);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue