Skip to content

Commit

Permalink
Add example to explainer text about 'error'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewagner committed Nov 1, 2024
1 parent 78d2ece commit cca454b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions design/mvp/Explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ the full range of flexibility to:
A consequence of this, however, is that components *must not* depend on the
contents of `error` values for behavioral correctness. In particular, case
analysis of the contents of an `error` should not determine *error receovery*;
for this, proper `result` or `variant` types must be used in the WIT function
signature.
explicit `result` or `variant` types must be used in the function return
type instead (e.g., `(func (result (tuple (stream u8) (future $my-error)))`).

##### Container types

Expand Down

0 comments on commit cca454b

Please sign in to comment.