Skip to content

Commit b5fee57

Browse files
[spec] Fix various typos (#2004)
1 parent cb97007 commit b5fee57

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

document/core/appendix/algorithm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ It allocates a new frame record recording them along with the current height of
277277
Popping a frame first checks that the control stack is not empty.
278278
It then verifies that the operand stack contains the right types of values expected at the end of the exited block and pops them off the operand stack.
279279
Afterwards, it checks that the stack has shrunk back to its initial height.
280-
Finally, it undoes all changes to the initialization status of locals that happend inside the block.
280+
Finally, it undoes all changes to the initialization status of locals that happened inside the block.
281281

282282
The type of the :ref:`label <syntax-label>` associated with a control frame is either that of the stack at the start or the end of the frame, determined by the opcode that it originates from.
283283

document/core/appendix/changes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Added instructions to perform tail calls. [#proposal-tailcall]_
367367
Exception Handling
368368
..................
369369

370-
Added tag definitions, imports, and exports, and instructions to throw and catch exceptions [#proposal-exn]_
370+
Added tag definitions, imports, and exports, and instructions to throw and catch exceptions. [#proposal-exn]_
371371

372372
* :ref:`Modules <syntax-module>` may
373373

@@ -500,7 +500,7 @@ Added more precise types for references. [#proposal-typedref]_
500500

501501
* Refined typing of :ref:`local instructions <valid-instr-variable>` and :ref:`instruction sequences <valid-instrs>` to track the :ref:`initialization status <syntax-init>` of :ref:`locals <syntax-local>` with non-defaultable type
502502

503-
* Refined decoding of :ref:`active <syntax-elemmode>` :ref:`element segments <binary-elem>` with implicit element type and plain function indices (opcode :math:`0`) to produce :ref:`non-null <syntax-null>` :ref:`reference type <syntax-reftype>`.
503+
* Refined decoding of :ref:`active <syntax-elemmode>` :ref:`element segments <binary-elem>` with implicit element type and plain function indices (opcode :math:`0`) to produce :ref:`non-null <syntax-null>` :ref:`reference type <syntax-reftype>`
504504

505505
* Extended :ref:`table definitions <syntax-table>` with optional initializer expression
506506

document/core/exec/runtime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ It is an invariant of the semantics that all elements of a segment have a type :
378378
Data Instances
379379
~~~~~~~~~~~~~~
380380

381-
An *data instance* is the runtime representation of a :ref:`data segment <syntax-data>`.
381+
A *data instance* is the runtime representation of a :ref:`data segment <syntax-data>`.
382382
It holds a list of :ref:`bytes <syntax-byte>`.
383383

384384
$${syntax: datainst}

document/core/exec/types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is an invariant of the semantics that all types occurring during execution ar
1010

1111
.. note::
1212
Runtime type checks generally involve types from multiple modules or types not defined by a module at all,
13-
such that any module-local :ref:`type indices <syntax-typeidx>` occurring inside them would not geenrally be meaningful.
13+
such that any module-local :ref:`type indices <syntax-typeidx>` occurring inside them would not generally be meaningful.
1414

1515

1616

document/core/text/modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ $${grammar: Ttype_}
7474
Tags
7575
~~~~
7676

77-
An tag definition can bind a symbolic :ref:`tag identifier <text-id>`.
77+
A tag definition can bind a symbolic :ref:`tag identifier <text-id>`.
7878

7979
$${grammar: Ttag_}
8080

document/core/valid/conventions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Convention
8888
.. note::
8989
This definition computes an approximation of the reference type that is inhabited by all values from ${:rt_1} except those from ${:rt_2}.
9090
Since the type system does not have general union types,
91-
the defnition only affects the presence of null and cannot express the absence of other values.
91+
the definition only affects the presence of null and cannot express the absence of other values.
9292

9393

9494
.. index:: ! defined type, recursive type

spectec/doc/Latex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ will render as
178178
| reftype
179179
```
180180

181-
The description is also used in [prose](Prose.md) geenration.
181+
The description is also used in [prose](Prose.md) generation.
182182

183183

184184
#### Name hints (`name`)

0 commit comments

Comments
 (0)