Skip to content

Commit 8059cd6

Browse files
zorenbinji
authored andcommitted
Update instructions.rst (#995)
use `local.get` name instead of `get_local` which isn't used elsewhere.
1 parent 5ea9d89 commit 8059cd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎document/core/text/instructions.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,12 @@ Such a folded instruction can appear anywhere a regular instruction can.
449449
For example, the instruction sequence
450450

451451
.. math::
452-
\mathtt{(get\_local~\$x)~(i32.const~2)~i32.add~(i32.const~3)~i32.mul}
452+
\mathtt{(local.get~\$x)~(i32.const~2)~i32.add~(i32.const~3)~i32.mul}
453453
454454
can be folded into
455455

456456
.. math::
457-
\mathtt{(i32.mul~(i32.add~(get\_local~\$x)~(i32.const~2))~(i32.const~3))}
457+
\mathtt{(i32.mul~(i32.add~(local.get~\$x)~(i32.const~2))~(i32.const~3))}
458458
459459
Folded instructions are solely syntactic sugar,
460460
no additional syntactic or type-based checking is implied.

0 commit comments

Comments
 (0)