From 9ea324f47a9cb57dbb1901270cebdb7a7d0b0ec0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 26 Oct 2023 07:19:59 -0700 Subject: [PATCH] Fix double-semicolon grammar on resource methods Closes #267 --- design/mvp/WIT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/design/mvp/WIT.md b/design/mvp/WIT.md index 0e7fe18c..b1eea816 100644 --- a/design/mvp/WIT.md +++ b/design/mvp/WIT.md @@ -1194,7 +1194,7 @@ Specifically, the syntax for a `resource` definition is: ```ebnf resource-item ::= 'resource' id ';' | 'resource' id '{' resource-method* '}' -resource-method ::= func-item ';' +resource-method ::= func-item | id ':' 'static' func-type ';' | 'constructor' param-list ';' ```