diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/guessing.sloth | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/guessing.sloth b/examples/guessing.sloth index 1938269..01f0796 100644 --- a/examples/guessing.sloth +++ b/examples/guessing.sloth @@ -9,7 +9,7 @@ while !correct { if human == computer { println("You guessed the same number as me!"); - correct = true; + var correct = true; } if human > computer { @@ -20,7 +20,7 @@ while !correct { println("Your guess was too low."); } - tries = tries + 1; + var tries = tries + 1; } println("\nIt took you ", tries, " tries to guess correctly!"); |
