8000 [spec] Fix typos (#1994) · WebAssembly/spec@758b7cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 758b7cf

Browse files
[spec] Fix typos (#1994)
Fix typos in section "Structure > Instructions > Memory Instructions".
1 parent 485bbd9 commit 758b7cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

document/core/syntax/instructions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Instructions in this group are concerned with linear :ref:`memory <syntax-mem>`.
196196

197197
$${syntax: memarg loadop_ storeop_ vloadop_ {instr/memory instr/data}}
198198

199-
Memory is accessed with ${:LOAD} and ${:STORE} instructions for the different :ref:`number types <syntax-numtype>` and `vector types <syntax-vectype>`.
199+
Memory is accessed with ${:LOAD} and ${:STORE} instructions for the different :ref:`number types <syntax-numtype>` and :ref:`vector types <syntax-vectype>`.
200200
They all take a :ref:`memory index <syntax-memidx>` and a *memory argument* ${:memarg} that contains an address *offset* and the expected *alignment* (expressed as the exponent of a power of 2).
201201

202202
Integer loads and stores can optionally specify a *storage size* ${:sz} that is smaller than the :ref:`bit width <syntax-numtype>` of the respective value type.
@@ -213,8 +213,8 @@ The ${:MEMORY.SIZE} instruction returns the current size of a memory.
213213
The ${:MEMORY.GROW} instruction grows a memory by a given delta and returns the previous size, or ${:$(-1)} if enough memory cannot be allocated.
214214
Both instructions operate in units of :ref:`page size <page-size>`.
215215

216-
The ${:MEMORY.FILL} instruction sets all values in a regionof a memory to a given byte.
217-
The ${:MEMORY.COPY} instruction copies data from a source memory region to a possibly overlapping destination region in another or the same memory; the first index denotes the destination
216+
The ${:MEMORY.FILL} instruction sets all values in a region of memory to a given byte.
217+
The ${:MEMORY.COPY} instruction copies data from a source memory region to a possibly overlapping destination region in another or the same memory; the first index denotes the destination.
218218
The ${:MEMORY.INIT} instruction copies data from a :ref:`passive data segment <syntax-data>` into a memory.
219219

220220
The ${:DATA.DROP} instruction prevents further use of a passive data segment. This instruction is intended to be used as an optimization hint. After a data segment is dropped its data can no longer be retrieved, so the memory used by this segment may be freed.

0 commit comments

Comments
 (0)
0