mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Sugar Assert fix
This commit is contained in:
parent
83a229e3f5
commit
087bc761d5
@ -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...")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user