Skip to content

Commit 2ba134b

Browse files
ia0rossberg
authored andcommitted
[spec] Fix syntax error in element segments validation rule (WebAssembly#1465)
1 parent b179597 commit 2ba134b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document/core/valid/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Element segments :math:`\elem` are classified by the :ref:`reference type <synta
149149

150150
* For each :math:`e_i` in :math:`e^\ast`,
151151

152-
* The expression :math:`e_i` must be :ref:`valid <valid-expr>`.
152+
* The expression :math:`e_i` must be :ref:`valid <valid-expr>` with some :ref:`result type <syntax-resulttype>` :math:`[t]`.
153153

154154
* The expression :math:`e_i` must be :ref:`constant <valid-const>`.
155155

@@ -160,7 +160,7 @@ Element segments :math:`\elem` are classified by the :ref:`reference type <synta
160160

161161
.. math::
162162
\frac{
163-
(C \vdashexpr e \ok)^\ast
163+
(C \vdashexpr e : [t])^\ast
164164
\qquad
165165
(C \vdashexprconst e \const)^\ast
166166
\qquad

0 commit comments

Comments
 (0)