on master help sign in
Fix: Bugs In Hoon Syntax Example of Idiomatic Rune FizzBuzz
a38edc2Eric Scrivner
docs/hoon/syntax.md+2−2
@@ -159,7 +159,7 @@ with the [original](../demo).
159 |= end/atom
159 |= end/atom
160 =/ count 1
160 =/ count 1
161 |- ^- (list tape)
161 |- ^- (list tape)
162− ?: =(100 count) ~
162+ ?: =(end count) ~
163 :_ $(count (add 1 count))
163 :_ $(count (add 1 count))
164 ?: =(0 (mod count 15))
164 ?: =(0 (mod count 15))
165 "FizzBuzz"
165 "FizzBuzz"
@@ -167,7 +167,7 @@ with the [original](../demo).
167 "Fizz"
167 "Fizz"
168 ?: =(0 (mod count 3))
168 ?: =(0 (mod count 3))
169 "Buzz"
169 "Buzz"
170− (text !>(count))
170+ (pave !>(count))
171```
171```
172
172
173## Tall regular form
173## Tall regular form