mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-14 02:34:17 +02:00
Sugar Assert fix
This commit is contained in:
@@ -235,7 +235,7 @@ proc ask(question: string): Answer =
|
|||||||
else: echo("Please be clear: yes or no")
|
else: echo("Please be clear: yes or no")
|
||||||
|
|
||||||
proc addSugar(amount: int = 2) = # Default amount is 2, returns nothing
|
proc addSugar(amount: int = 2) = # Default amount is 2, returns nothing
|
||||||
assert(amount > 0 or amount < 9000, "Crazy Sugar")
|
assert(amount > 0 and amount < 9000, "Crazy Sugar")
|
||||||
for a in 1..amount:
|
for a in 1..amount:
|
||||||
echo(a, " sugar...")
|
echo(a, " sugar...")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user