summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-09-10 19:11:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-10 19:11:56 +0900
commit648a774ef6e68a9aec860ba5438f47aaf912b578 (patch)
treed40a37c3c6de4fb40ef27a7f3dcc90464243879b
parentda749d870f4a57df7a05ef4a9ae023602d48af86 (diff)
downloadmruby-648a774ef6e68a9aec860ba5438f47aaf912b578.tar.gz
mruby-648a774ef6e68a9aec860ba5438f47aaf912b578.zip
ops.h: update `OP_HASHADD` description.
-rw-r--r--doc/opcode.md2
-rw-r--r--include/mruby/ops.h2
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) */