on master help sign in
update /threads/examples/main-loop wrt dist
876361ctinnus-napbus
content/docs/userspace/threads/examples/main-loop.md+2−2
@@ -68,7 +68,7 @@ Here's an example of a thread that subscribes to `graph-store` for updates and n
68(pure:m !>(~))
68(pure:m !>(~))
69```
69```
70
70
71−Save it in `/ted`, `|commit %home`, and run it with `-chat-watch`. Now try typing some messages in the chat and you should see them printed like:
71+Save it in `/ted`, `|commit %base`, and run it with `-chat-watch`. Now try typing some messages in the chat and you should see them printed like:
72
72
73```
73```
74~zod/test-8488: [~zod] x
74~zod/test-8488: [~zod] x
@@ -103,7 +103,7 @@ Once this is done, main-loop will just call the same function again which will a
103
103
104To try the same input against multiple function you must use another `strandio` function `handle`. Handle converts a `%skip` into a `[fail %ignore ~]`. When `main-loop` sees a `[fail %ignore ~]` it tries the next function in its list with the same input.
104To try the same input against multiple function you must use another `strandio` function `handle`. Handle converts a `%skip` into a `[fail %ignore ~]`. When `main-loop` sees a `[fail %ignore ~]` it tries the next function in its list with the same input.
105
105
106−Here are two files: `tester.hoon` and `tested.hoon`. Save them both to `/ted`, `|commit %home` and run `-tester`. You should see:
106+Here are two files: `tester.hoon` and `tested.hoon`. Save them both to `/ted` in the `%base` desk, `|commit %base` and run `-tester`. You should see:
107
107
108```
108```
109> -tester
109> -tester