on master help sign in
gall-guide - subscriptions - minor restructure to example code

Co-authored-by: poprox <51337059+drbeefsupreme@users.noreply.github.com>

commit6d6d278639ab35e37f6807df28eea76fdab2c52f authortinnus-napbus <77721746+tinnus-napbus@users.noreply.github.com> dateWed 8 Dec 2021, 00:02 (5 years ago) parent3a6a4e1
1 file changed+12−14
content/docs/userspace/gall-guide/8-subscriptions.md+12−14
content/docs/userspace/gall-guide/8-subscriptions.md+12−14
@@ -480,25 +480,23 @@ This is a very simple mark file for the `update` type.
480480 ==
481481 ::
482482 %toggle
483− :_ %= state
484− tasks %+ ~(jab by tasks)
485− id.action
486− |=(=task:todo task(done !done.task))
487− ==
488− :~ :* %give %fact ~[/updates] %todo-update
483+ :- :~ :* %give %fact ~[/updates] %todo-update
489484 !>(`update:todo`action)
490− ==
485+ == ==
486+ %= state
487+ tasks %+ ~(jab by tasks)
488+ id.action
489+ |=(=task:todo task(done !done.task))
491490 ==
492491 ::
493492 %rename
494− :_ %= state
495− tasks %+ ~(jab by tasks)
496− id.action
497− |=(=task:todo task(name name.action))
498− ==
499− :~ :* %give %fact ~[/updates] %todo-update
493+ :- :~ :* %give %fact ~[/updates] %todo-update
500494 !>(`update:todo`action)
501− ==
495+ == ==
496+ %= state
497+ tasks %+ ~(jab by tasks)
498+ id.action
499+ |=(=task:todo task(name name.action))
502500 ==
503501 %allow
504502 `state(friends (~(put in friends) who.action))