Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor copy edit suggestions #1512

Merged
merged 3 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion document/core/intro/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This language is structured around the following concepts.
**Tables**
A *table* is an array of opaque values of a particular *element type*.
It allows programs to select such values indirectly through a dynamic index operand.
Currently, the only available element type is an untyped function reference.
Currently, the only available element type is an untyped function reference or a reference to an external host value.
Thereby, a program can call functions indirectly through a dynamic index into a table.
For example, this allows emulating function pointers by way of table indices.

Expand Down
2 changes: 1 addition & 1 deletion document/core/syntax/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ The |MSTART| component of a module declares the :ref:`function index <syntax-fun

.. note::
The start function is intended for initializing the state of a module.
The module and its exports are not accessible before this initialization has completed.
The module and its exports are not accessible to the host before this initialization has completed.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stumbed over this because when I read it the first time, I thought it implied that I can’t call an exported function from my start function.

surma marked this conversation as resolved.
Show resolved Hide resolved


.. index:: ! export, name, index, function index, table index, memory index, global index, function, table, memory, global, instantiation
Expand Down
2 changes: 1 addition & 1 deletion document/core/valid/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ Parametric Instructions

* The length of :math:`t^\ast` must be :math:`1`.

* Then the instruction is valid with type :math:`[t^\ast~t^\ast~\I32] \to [t^\ast]`.
* The instruction is valid with type :math:`[t^\ast~t^\ast~\I32] \to [t^\ast]`.

* Else:

Expand Down
2 changes: 2 additions & 0 deletions document/core/valid/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ Limits
\vdashlimitsmatch \{ \LMIN~n_1, \LMAX~m_1 \} \matcheslimits \{ \LMIN~n_2, \LMAX~m_2 \}
}

.. note::
In this context, read :math:`\matcheslimits` as “is the same type as or a subtype of”.
surma marked this conversation as resolved.
Show resolved Hide resolved

.. _match-externtype:

Expand Down