mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-17 15:54:07 +10:00
Squashing bugs
This commit is contained in:
@@ -2,18 +2,11 @@ fn capture(count: int) {
|
||||
print count;
|
||||
print capture;
|
||||
|
||||
if (count < 5) {
|
||||
if (count > 5) {
|
||||
return count;
|
||||
}
|
||||
|
||||
print count;
|
||||
print capture;
|
||||
|
||||
count++;
|
||||
count++;
|
||||
|
||||
// return capture(count + 1);
|
||||
return -1;
|
||||
return capture(count + 1);
|
||||
}
|
||||
|
||||
print capture(52);
|
||||
print capture(0);
|
||||
|
||||
Reference in New Issue
Block a user