on master help sign in
Update demo.md
5282442Joshua Reagan
docs/hoon/demo.md+6−5
@@ -38,8 +38,10 @@ The code produces a list in which each item is either a number
38(as a string), "Fizz", "Buzz", or "Fizzbuzz". The value `~` is
38(as a string), "Fizz", "Buzz", or "Fizzbuzz". The value `~` is
39"null" and indicates the end of the list.
39"null" and indicates the end of the list.
40
40
41+Line 1 uses the `|=`
42+*[rune](https://urbit.org/docs/about/glossary#rune)* to define a
41−Line 1 uses `|=` to define a function of one argument, `end`,
43+function of one argument, `end`, which is of the type `atom` (i.e.
42−which is of the type `atom` (i.e. an unsigned integer).
44+an unsigned integer).
43
45
44Line 2 declares a variable, `count`, with initial value `1`.
46Line 2 declares a variable, `count`, with initial value `1`.
45
47
@@ -47,9 +49,8 @@ Line 3 begins a loop.
47
49
48Line 4 defines the product of the loop as a list of `tape`s.
50Line 4 defines the product of the loop as a list of `tape`s.
49(A `tape` is a list of characters, one of Hoon's two string
51(A `tape` is a list of characters, one of Hoon's two string
50−types.) The `^-`
51−*[rune](https://urbit.org/docs/about/glossary#rune)* is used for
52−defining the type the function is to return.
52+types.) The `^-` rune is used for defining the product type the function
53+is to return.
53
54
54Line 5 uses the `?:` rune, which is a conditional. This line
55Line 5 uses the `?:` rune, which is a conditional. This line
55checks whether `count` equals `end`. If so, line 6 (and the
56checks whether `count` equals `end`. If so, line 6 (and the