on master help sign in
Merge pull request #97 from hidwes-matped/master

Fix up subscriptions.md to reflect latest example code

commitbef75346573f410658506dd1ec6148c708fd120d authorGalen Wolfe-Pauly <galen@office-for.com> dateFri 19 Aug 2016, 15:53 (10 years ago) parentd94e170a82f9e6
2 files changed+8−8
docs/arvo/subscriptions.md+7−7 docs/hoon/twig/tis-flow/sig-tow.md+1−1
docs/arvo/subscriptions.md+7−7
@@ -26,9 +26,9 @@ First, `:examples-source`:
2626 |= arg/*
2727 ^- {(list move) _+>.$}
2828 :_ +>.$
29− %+ turn (prey /the-path hid)
29+ %+ turn (prey /example-path hid)
3030 |=({o/bone *} `move`[o %diff %noun arg])
31− ++ peer
31+ ++ peer-example-path
3232 |= pax/path
3333 ^- {(list move) _+>.$}
3434 ~& [%subscribed-to pax=pax]
@@ -51,7 +51,7 @@ And secondly, `:examples-sink`:
5151 |= arg/*
5252 ^- {(list move) _+>.$}
5353 ?: &(=(%on arg) available)
54− [[[ost %peer /subscribe [our %source] /the-path] ~] +>.$(available |)]
54+ [[[ost %peer /subscribe [our %source] /example-path] ~] +>.$(available |)]
5555 ?: &(=(%off arg) !available)
5656 [[[ost %pull /subscribe [our %source] ~] ~] +>.$(available &)]
5757 ~& ?:(available %not-subscribed %subscribed)
@@ -126,7 +126,7 @@ Here's some sample output of the two working together:
126126 ~fintud-macrep:dojo> |start %examples-sink
127127 >=
128128 ~fintud-macrep:dojo> :examples-sink %on
129− [%subscribed-to pax=/the-path]
129+ [%subscribed-to pax=/example-path]
130130 %successfully-subscribed]
131131 >=
132132 ~fintud-macrep:dojo> :examples-source 5
@@ -137,7 +137,7 @@ Here's some sample output of the two working together:
137137 ~fintud-macrep:dojo> :examples-source 6
138138 >=
139139 ~fintud-macrep:dojo> :examples-sink %on
140− [%subscribed-to pax=/the-path]
140+ [%subscribed-to pax=/example-path]
141141 %successfully-subscribed]
142142 >=
143143 ~fintud-macrep:dojo> :examples-source 7
@@ -189,7 +189,7 @@ Thus, we're producing our state unchanged.
189189
190190Our list of moves is the result of a call to `++turn`. `++turn` is what
191191many languages call "map" -- it runs a function on every item in a list
192−and collects the results in a list. The list is `(prey /the-path hid)`
192+and collects the results in a list. The list is `(prey /example-path hid)`
193193and the function is the `|=` line right after it.
194194
195195`++prey` is a standard library function defined in `zuse`. It takes a
@@ -234,7 +234,7 @@ In `++poke-noun` we check our input to see both if it's `%on` and we're
234234available. If so, we produce the move to subscribe to
235235`:examples-source`:
236236
237− [ost %peer /subscribe [our %source] /the-path]
237+ [ost %peer /subscribe [our %source] /example-path]
238238
239239Also, we set available to false (`|`) with `+>.$(available |)`.
240240
docs/hoon/twig/tis-flow/sig-tow.md+1−1
@@ -3,7 +3,7 @@ navhome: /docs
33sort: 12
44---
55
6−# `:tow => "tissig"`
6+# `:tow =~ "tissig"`
77
88`{$tow p/(list twig)}`: compose many twigs.
99