Skip to content

Commit 2579170

Browse files
authored
Fix typos in opcode documentation comments
Correct documentation comments for: - OP_3DUP: "Duplicates the three stack items" (was "two three") - OP_2OVER: "Copies the two stack items two spaces back" (was "of items")
1 parent 6e8bd33 commit 2579170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

primitives/src/opcodes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ all_opcodes! {
187187
OP_FROMALTSTACK => 0x6c, "Pop one element from the alt stack onto the main stack.";
188188
OP_2DROP => 0x6d, "Drops the top two stack items.";
189189
OP_2DUP => 0x6e, "Duplicates the top two stack items as `AB` -> `ABAB`.";
190-
OP_3DUP => 0x6f, "Duplicates the two three stack items as `ABC` -> `ABCABC`.";
191-
OP_2OVER => 0x70, "Copies the two stack items of items two spaces back to the front, as `xxAB` -> `ABxxAB`.";
190+
OP_3DUP => 0x6f, "Duplicates the three stack items as `ABC` -> `ABCABC`.";
191+
OP_2OVER => 0x70, "Copies the two stack items two spaces back to the front, as `xxAB` -> `ABxxAB`.";
192192
OP_2ROT => 0x71, "Moves the two stack items four spaces back to the front, as `xxxxAB` -> `ABxxxx`.";
193193
OP_2SWAP => 0x72, "Swaps the top two pairs, as `ABCD` -> `CDAB`.";
194194
OP_IFDUP => 0x73, "Duplicate the top stack element unless it is zero.";

0 commit comments

Comments
 (0)