on master help sign in
this example is used early and threw me with the whitespace, line numbers are off in the arvo/hoon example
6bc7a98Heow Goodman
docs/arvo/basic.md+3−3
@@ -117,7 +117,7 @@ rune takes a specific number of children, either expressions formed by
117other runes or literals that produce their own value (some runes take
117other runes or literals that produce their own value (some runes take
118*N* children, and are usually closed with `==`).
118*N* children, and are usually closed with `==`).
119
119
120−For example, the rune `?:` from line 17 is the classic 'if-then-else'
120+For example, the rune `?:` from line 18 is the classic 'if-then-else'
121statement, and thus takes three children:
121statement, and thus takes three children:
122
122
123 ?: (lth a b) :: if first child evals to true
123 ?: (lth a b) :: if first child evals to true
@@ -165,9 +165,9 @@ You can write:
165 :if(=(1 2) 'this is true' 'this is false')
165 :if(=(1 2) 'this is true' 'this is false')
166 'this is false'
166 'this is false'
167
167
168−### Lines 12-34
168+### Lines 13-35
169
169
170−Now let's quickly walk through this code line-by-line. Lines 12-34 are
170+Now let's quickly walk through this code line-by-line. Lines 13-35 are
171wrapped in a `|%` ('[barcen](../../hoon/twig/bar-core/cen-core/)'), which produces a core. Cores are a
171wrapped in a `|%` ('[barcen](../../hoon/twig/bar-core/cen-core/)'), which produces a core. Cores are a
172fundamental datatype in Hoon, similar to a struct, class, or object. A
172fundamental datatype in Hoon, similar to a struct, class, or object. A
173core is just a map of names to any kind of code, whether it be functions
173core is just a map of names to any kind of code, whether it be functions
docs/using/shell.md+1−1
@@ -21,7 +21,7 @@ system for operating on and transforming data in Urbit.
21
21
22## Quickstart
22## Quickstart
23
23
24−Evaluate a hoon expression:
24+Evaluate a hoon expression (whitespace matters):
25
25
26 ~your-urbit:dojo> (add 2 2)
26 ~your-urbit:dojo> (add 2 2)
27 ~your-urbit:dojo> %+ add 2 2
27 ~your-urbit:dojo> %+ add 2 2