Skip to content

Commit 8f029a9

Browse files
committed
Restore the optionality of arrow in function types returning nothing
1 parent 6e35c8f commit 8f029a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

design/mvp/WIT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ sleep: async func(ms: u64)
348348
Specifically functions have the structure:
349349

350350
```wit
351-
func-item ::= id ':' 'async'? 'func' func-tuple '->' func-tuple
351+
func-item ::= id ':' 'async'? 'func' func-tuple ( '->' func-tuple )?
352352
353353
func-tuple ::= ty
354354
| '(' func-named-type-list ')'

0 commit comments

Comments
 (0)