Improve example in readme

This commit is contained in:
~wicrum-wicrun 2022-12-05 00:03:00 +01:00
parent 4c64e7ec74
commit 1b4a705f1b

View File

@ -229,11 +229,12 @@ decouples code from data and is one important step towards purely functional
agents.
### Subscribing to subpaths
Let's say we have the following `$wave` as part of the incoming interface:
Let's say we have the following `$wave` as part of the incoming interface for a
chat application:
```hoon
+$ wave
$% [[%chats ~] cord]
$% [[%chats ~] @p @da cord]
==
```
@ -244,7 +245,7 @@ interface declaration by changing the terminator from a `~` to a `*`:
```hoon
+$ wave
$% [[%chats *] cord]
$% [[%chats *] @p @da cord]
==
```