summaryrefslogtreecommitdiffhomepage
path: root/src/opcode.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-09 21:37:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-09 21:37:28 +0900
commitef9daf7ef37a4ad9469a260ea52aa014bdf6549e (patch)
treee199ab1c7621f63ac64ae858f8e194181f54e7ee /src/opcode.h
parentb531ae93bfa94dbe258b8b04c5c5583eb9d4a7b1 (diff)
downloadmruby-ef9daf7ef37a4ad9469a260ea52aa014bdf6549e.tar.gz
mruby-ef9daf7ef37a4ad9469a260ea52aa014bdf6549e.zip
fixed typos in operand descriptions
Diffstat (limited to 'src/opcode.h')
-rw-r--r--src/opcode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opcode.h b/src/opcode.h
index f87611119..7b5196d31 100644
--- a/src/opcode.h
+++ b/src/opcode.h
@@ -73,8 +73,8 @@ enum {
OP_SETCV,/* A Bx cvset(Sym(Bx),R(A)) */
OP_GETCONST,/* A Bx R(A) := constget(Sym(Bx)) */
OP_SETCONST,/* A Bx constset(Sym(Bx),R(A)) */
- OP_GETMCNST,/* A Bx R(A) := R(A)::Sym(B) */
- OP_SETMCNST,/* A Bx R(A+1)::Sym(B) := R(A) */
+ OP_GETMCNST,/* A Bx R(A) := R(A)::Sym(Bx) */
+ OP_SETMCNST,/* A Bx R(A+1)::Sym(Bx) := R(A) */
OP_GETUPVAR,/* A B C R(A) := uvget(B,C) */
OP_SETUPVAR,/* A B C uvset(B,C,R(A)) */
@@ -125,7 +125,7 @@ enum {
OP_STRCAT,/* A B str_cat(R(A),R(B)) */
OP_HASH,/* A B C R(A) := hash_new(R(B),R(B+1)..R(B+C)) */
- OP_LAMBDA,/* A Bz Cz R(A) := lambda(SEQ[Bz],Cm) */
+ OP_LAMBDA,/* A Bz Cz R(A) := lambda(SEQ[Bz],Cz) */
OP_RANGE,/* A B C R(A) := range_new(R(B),R(B+1),C) */
OP_OCLASS,/* A R(A) := ::Object */