diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-24 17:27:13 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-24 17:27:13 -0700 |
| commit | f7a9d1fc6b2ccd95f2f8df49f99073a6d2be9bb8 (patch) | |
| tree | b5f2a9c9f439925bfe8885e3007267ebbcb779ef | |
| parent | 871a5b6706dffd71199d57d913ec6ad9ffa657f9 (diff) | |
Fixed example to be actually functional.
| -rw-r--r-- | README.md | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -28,11 +28,10 @@ for %num in %my_nums: action [sing %n bottles of beer]: for %i in %n to 1 by -1: say ".." - \%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 on the wall, + \%i bottle\("s" if (%i > 1) else "") of beer! Take one down, pass it around... 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 ``` |
