Skip to content

Commit 6b3296b

Browse files
committed
Update references to the "function" element type.
This is renamed to "anyfunc" in AstSemantics.md in #682. Also, fix grammar in the Elements Section.
1 parent 85c5e1c commit 6b3296b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FutureFeatures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ could be added:
451451
* `current_table_length`: like `current_memory`.
452452

453453
Additionally, in the MVP, the only allowed element type of tables is a generic
454-
"function" type which simply means the element can be called but there is no
454+
"anyfunc" type which simply means the element can be called but there is no
455455
static signature validation check. This could be improved by allowing:
456456
* functions with a particular signature, allowing wasm generators to use
457457
multiple homogeneously-typed function tables (instead of a single

Modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ if there is a table definition, it *must* declare itself the default
256256
Each table definition also includes an *element type*, *initial length*, and
257257
optional *maximum length*.
258258

259-
In the MVP, the only valid element type is `"function"`, but in the
259+
In the MVP, the only valid element type is `"anyfunc"`, but in the
260260
[future](FutureFeatures.md#more-table-operators-and-types), more element
261261
types may be added.
262262

@@ -285,8 +285,8 @@ specify the initial contents of fixed `(offset, length)` ranges of a given
285285
table, specified by its [table index](#table-index-space). The `length` is an
286286
integer constant value (defining the length of the given segment). The `offset`
287287
is an [initializer expression](#initializer-expression). Elements are specified
288-
with a `(type, index)` pair where `type` is the type of an
289-
[index spaces](Modules.md) that is compatible with the table's element type and
288+
with a `(type, index)` pair where `type` is the element type of an
289+
[index space](Modules.md) that is compatible with the table's element type and
290290
`index` is an integer immediate into `type`s index space.
291291

292292
## Function and Code sections

0 commit comments

Comments
 (0)