Update OP_APOST description; ref #4008

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-04-28 15:36:23 +09:00
parent 0fee6e1ee9
commit 59c8fdd651
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ enum {
OP_ARYPUSH,/* A B ary_push(R(A),R(B)) */
OP_AREF,/* A B C R(A) := R(B)[C] */
OP_ASET,/* A B C R(B)[C] := R(A) */
OP_APOST,/* A B C *R(A),R(A+1)..R(A+C) := R(A) */
OP_APOST,/* A B C *R(A),R(A+1)..R(A+C) := R(A)[B..] */
OP_STRING,/* A Bx R(A) := str_dup(Lit(Bx)) */
OP_STRCAT,/* A B str_cat(R(A),R(B)) */
+1 -1
View File
@@ -2706,7 +2706,7 @@ RETRY_TRY_BLOCK:
}
CASE(OP_APOST) {
/* A B C *R(A),R(A+1)..R(A+C) := R(A) */
/* A B C *R(A),R(A+1)..R(A+C) := R(A)[B..] */
int a = GETARG_A(i);
mrb_value v = regs[a];
int pre = GETARG_B(i);