Skip to content

Commit dad6e78

Browse files
specify dtor type (#638)
1 parent 451b045 commit dad6e78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

design/mvp/Explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ destructor function specified by the `dtor` immediate will be called (if
816816
present), allowing the implementing component to perform clean-up like freeing
817817
linear memory allocations. Destructors can be declared `async`, with the same
818818
meaning for the `async` and `callback` immediates as described below for `canon
819-
lift`.
819+
lift`. A destructor for a `resource (rep $T)` must have type `($T) -> ()`.
820820

821821
The `instance` type constructor describes a list of named, typed definitions
822822
that can be imported or exported by a component. Informally, instance types

0 commit comments

Comments
 (0)