diff options
| -rw-r--r-- | doc/opcode.md | 2 | ||||
| -rw-r--r-- | include/mruby/ops.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/opcode.md b/doc/opcode.md index 1c13c2931..f6e3b7604 100644 --- a/doc/opcode.md +++ b/doc/opcode.md @@ -106,7 +106,7 @@ sign) of operands. | `OP_STRING` | `BB` | `R(a) = str_dup(Pool(b))` | | `OP_STRCAT` | `B` | `str_cat(R(a),R(a+1))` | | `OP_HASH` | `BB` | `R(a) = hash_new(R(a),R(a+1)..R(a+b*2-1))` | -| `OP_HASHADD` | `BB` | `R(a) = hash_push(R(a),R(a+1)..R(a+b*2))` | +| `OP_HASHADD` | `BB` | `hash_push(R(a),R(a+1)..R(a+b*2))` | | `OP_HASHCAT` | `B` | `R(a) = hash_cat(R(a),R(a+1))` | | `OP_LAMBDA` | `BB` | `R(a) = lambda(Irep(b),OP_L_LAMBDA)` | | `OP_BLOCK` | `BB` | `R(a) = lambda(Irep(b),OP_L_BLOCK)` | diff --git a/include/mruby/ops.h b/include/mruby/ops.h index 705247649..49b624ecb 100644 --- a/include/mruby/ops.h +++ b/include/mruby/ops.h @@ -95,7 +95,7 @@ OPCODE(SYMBOL, BB) /* R(a) = intern(Pool(b)) */ OPCODE(STRING, BB) /* R(a) = str_dup(Pool(b)) */ OPCODE(STRCAT, B) /* str_cat(R(a),R(a+1)) */ OPCODE(HASH, BB) /* R(a) = hash_new(R(a),R(a+1)..R(a+b*2-1)) */ -OPCODE(HASHADD, BB) /* R(a) = hash_push(R(a),R(a+1)..R(a+b*2)) */ +OPCODE(HASHADD, BB) /* hash_push(R(a),R(a+1)..R(a+b*2)) */ OPCODE(HASHCAT, B) /* R(a) = hash_cat(R(a),R(a+1)) */ OPCODE(LAMBDA, BB) /* R(a) = lambda(Irep(b),L_LAMBDA) */ OPCODE(BLOCK, BB) /* R(a) = lambda(Irep(b),L_BLOCK) */ |
