Skip to content

Commit 1bd7817

Browse files
authored
Fix WIT resource desugar example (#322)
1 parent eefe545 commit 1bd7817

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

design/mvp/WIT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ resource blob {
11621162
desugars into:
11631163
```wit
11641164
resource blob;
1165-
%[constructor]blob: func(self: borrow<blob>, bytes: list<u8>) -> blob;
1165+
%[constructor]blob: func(init: list<u8>) -> blob;
11661166
%[method]blob.write: func(self: borrow<blob>, bytes: list<u8>);
11671167
%[method]blob.read: func(self: borrow<blob>, n: u32) -> list<u8>;
11681168
%[static]blob.merge: func(lhs: borrow<blob>, rhs: borrow<blob>) -> blob;

0 commit comments

Comments
 (0)