Fixed example to be actually functional.
This commit is contained in:
parent
871a5b6706
commit
f7a9d1fc6b
@ -28,11 +28,10 @@ for %num in %my_nums:
|
|||||||
action [sing %n bottles of beer]:
|
action [sing %n bottles of beer]:
|
||||||
for %i in %n to 1 by -1:
|
for %i in %n to 1 by -1:
|
||||||
say ".."
|
say ".."
|
||||||
\%i bottle\("s" if i > 1 else "") of beer on the wall,
|
\%i bottle\("s" if (%i > 1) else "") of beer on the wall,
|
||||||
\%i bottle\("s" if i > 1 else "") of beer!
|
\%i bottle\("s" if (%i > 1) else "") of beer!
|
||||||
Take one down, pass it around...
|
Take one down, pass it around...
|
||||||
say "No bottles of beer on the wall. Go to the store, buy some more..."
|
say "No bottles of beer on the wall. Go to the store, buy some more..."
|
||||||
sing %n bottles of beer
|
|
||||||
|
|
||||||
sing 99 bottles of beer
|
sing 99 bottles of beer
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user