Convert ret to return
This commit is contained in:
parent
dc499f193e
commit
b355936b4d
456 changed files with 3875 additions and 3798 deletions
|
@ -26,11 +26,11 @@ class cat {
|
|||
if self.how_hungry > 0 {
|
||||
error!{"OM NOM NOM"};
|
||||
self.how_hungry -= 2;
|
||||
ret true;
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
error!{"Not hungry!"};
|
||||
ret false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue