Commit 78e149a
docs: make the matcher snippets copy-pasteable
Review follow-ups on the P.tag migration:
- `docs/reference/error-model.md` and the `client.call` block in
`docs/how-to/use-request-reply.md` use `P.tag(...)` in snippets that
already lead with an import block, so declare `P`.
- `packages/client/README.md`: `./contract` gains its `.js` extension
(the repo targets Node ESM), and the cleanup line uses
`client.close().get()` — `close()` is `AsyncResult<void, never>`, so a
bare `await` resolves to a `Result` and swallows a close defect.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent faa74f7 commit 78e149a
3 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments