Fix: Bugs In Hoon Syntax Example of Idiomatic Rune FizzBuzz
*Overview*
- Actually use `end` face to determine program termination.
- Replace `text` with `pave` so output is identical to non-idiomatic rune example.
commita38edc246bb7524c35b988190036141df593f372
authorEric Scrivner <escrivner@coinbase.com>
dateSat 2 Jul 2016, 10:35 (10 years ago)
parentc8b4aa8
docs/hoon/syntax.md+2−2
@@ -159,7 +159,7 @@ with the [original](../demo).
159159 |= end/atom
160160 =/ count 1
161161 |- ^- (list tape)
162− ?: =(100 count) ~
162+ ?: =(end count) ~
163163 :_ $(count (add 1 count))
164164 ?: =(0 (mod count 15))
165165 "FizzBuzz"
@@ -167,7 +167,7 @@ with the [original](../demo).
167167 "Fizz"
168168 ?: =(0 (mod count 3))
169169 "Buzz"
170− (text !>(count))
170+ (pave !>(count))
171171```
172172
173173## Tall regular form