From db6370b735b01df370be704878b9e2d775609c34 Mon Sep 17 00:00:00 2001 From: Chris McBride Date: Wed, 4 Apr 2018 17:59:58 -0400 Subject: [PATCH] fix double negative in example the double negative changes the example output to 13 instead of the expected 7 --- ch06.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch06.asciidoc b/ch06.asciidoc index 34e6b4a1..5501f98d 100644 --- a/ch06.asciidoc +++ b/ch06.asciidoc @@ -446,7 +446,7 @@ As we saw in the step-by-step example in <>, when this script image::images/mbc2_0604.png["TxScriptSimpleMathExample"] [role="pagebreak-before"] -The following is a slightly more complex script, which calculates ++2 + 7 -- 3 + 1++. Notice that when the script contains several operators in a row, the stack allows the results of one operator to be acted upon by the next operator: +The following is a slightly more complex script, which calculates ++2 + 7 - 3 + 1++. Notice that when the script contains several operators in a row, the stack allows the results of one operator to be acted upon by the next operator: ---- 2 7 OP_ADD 3 OP_SUB 1 OP_ADD 7 OP_EQUAL