on master help sign in
more realistic paths in examples
commita646106ff92d6915eca2e6d26d879002161be712 authorTed Blackman <ted@tlon.io> dateWed 6 Sep 2017, 11:27 (9 years ago) parent1377b67
1 file changed+4−4
docs/arvo/internals/ford/runes.md+4−4
docs/arvo/internals/ford/runes.md+4−4
@@ -136,11 +136,11 @@ Here's a slightly more complex example with runes that use the filesystem:
136136```
137137/= file-length
138138 /; |=(a/@t (lent (crip a)))
139− /: /path/to/hoon/file /hoon/
139+ /: /%/path/to/hoon/file /hoon/
140140::
141141file-length
142142```
143−produces the number of bytes in the file "/path/to/hoon/file."
143+produces the number of bytes in the file "/%/path/to/hoon/file."
144144
145145### `/,` switch by path
146146
@@ -151,11 +151,11 @@ Takes a sequence of pairs of (path, horn) terminated by a `==`.
151151Example:
152152```
153153/= just-right
154− /: /right-path :: set path to /right-path
154+ /: /===/right-path :: set path to /%/right-path
155155 /,
156156 /wrong-path /~ ~
157157 /another-wrong-path /~ ~
158− /right-path /~ %evaluate-me :: only evaluate this horn
158+ /right-path /~ %evaluate-me :: only evaluate this horn
159159 ==
160160::
161161`@t`just-right