Skip to content

Commit edb5489

Browse files
committed
format: Clarify what nil represents
This change replaces nil with the Epsilon symbol and adds a note further clarifying what it is, in this case a empty string
1 parent 4a5b493 commit edb5489

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

design/mvp/WIT.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ sequence of items and functions.
683683

684684
Specifically interfaces have the structure:
685685

686+
> **Note**: The symbol `ε`, also known as Epsilon, denotes an empty string.
687+
686688
```ebnf
687689
interface-item ::= 'default'? 'interface' id '{' interface-items* '}'
688690
@@ -704,11 +706,11 @@ func-type ::= 'func' param-list result-list
704706
705707
param-list ::= '(' named-type-list ')'
706708
707-
result-list ::= nil
709+
result-list ::= ϵ
708710
| '->' ty
709711
| '->' '(' named-type-list ')'
710712
711-
named-type-list ::= nil
713+
named-type-list ::= ϵ
712714
| named-type ( ',' named-type )*
713715
714716
named-type ::= id ':' ty

0 commit comments

Comments
 (0)