Skip to content

Commit f58b501

Browse files
Adrian Colerossberg
Adrian Cole
andcommitted
Clarifies the note on text format export abbreviation expansion to reflect impact
While implementing this specification, I became confused as while the language did say the latter was repeatable, the rest used plural words for things that cannot repeat. This changes the text to hopefully prevent future folks from reaching the same misconclusion. Fixes #1418 Signed-off-by: Adrian Cole <[email protected]> Co-authored-by: Andreas Rossberg <[email protected]>
1 parent f2086a4 commit f58b501

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

document/core/text/modules.rst

+12-4
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ Functions can be defined as :ref:`imports <text-import>` or :ref:`exports <text-
250250
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
251251
\end{array}
252252
253-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export.
253+
.. note::
254+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
255+
Consequently, a function declaration can contain any number of exports, possibly followed by an import.
254256

255257

256258
.. index:: table, table type, identifier
@@ -319,7 +321,9 @@ Tables can be defined as :ref:`imports <text-import>` or :ref:`exports <text-exp
319321
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
320322
\end{array}
321323
322-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export or an inline elements segment.
324+
.. note::
325+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
326+
Consequently, a table declaration can contain any number of exports, possibly followed by an import.
323327

324328

325329
.. index:: memory, memory type, identifier
@@ -379,7 +383,9 @@ Memories can be defined as :ref:`imports <text-import>` or :ref:`exports <text-e
379383
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
380384
\end{array}
381385
382-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export or an inline data segment.
386+
.. note::
387+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
388+
Consequently, a memory declaration can contain any number of exports, possibly followed by an import.
383389

384390

385391
.. index:: global, global type, identifier, expression
@@ -423,7 +429,9 @@ Globals can be defined as :ref:`imports <text-import>` or :ref:`exports <text-ex
423429
(\iff \Tid^? \neq \epsilon \wedge \Tid' = \Tid^? \vee \Tid^? = \epsilon \wedge \Tid' \idfresh) \\
424430
\end{array}
425431
426-
The latter abbreviation can be applied repeatedly, with ":math:`\dots`" containing another import or export.
432+
.. note::
433+
The latter abbreviation can be applied repeatedly, if ":math:`\dots`" contains additional export clauses.
434+
Consequently, a global declaration can contain any number of exports, possibly followed by an import.
427435

428436

429437
.. index:: export, name, index, function index, table index, memory index, global index

0 commit comments

Comments
 (0)