Skip to content

Commit 4c6f1be

Browse files
committed
Add example to explainer text about 'error'
1 parent da53685 commit 4c6f1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

design/mvp/Explainer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ the full range of flexibility to:
654654
A consequence of this, however, is that components *must not* depend on the
655655
contents of `error` values for behavioral correctness. In particular, case
656656
analysis of the contents of an `error` should not determine *error receovery*;
657-
for this, proper `result` or `variant` types must be used in the WIT function
658-
signature.
657+
explicit `result` or `variant` types must be used in the function return
658+
type instead (e.g., `(func (result (tuple (stream u8) (future $my-error)))`).
659659

660660
##### Container types
661661

0 commit comments

Comments
 (0)