errata: p.320: two fixes to evaluator test case

This commit is contained in:
Alan Donovan
2016-09-06 22:55:03 -04:00
parent ef034483f5
commit bc54a9a664

View File

@@ -213,6 +213,17 @@ pre {
(Thanks to Jose Colon Rodriguez, 2016-01-09.)
</p>
<p>
<b>p.320, code display following ¶1</b>: The suggested test case
does not exercise the unary plus operator, nor is
the <code>eval</code> package qualifier appropriate:
<pre>{"-x * -x", eval.Env{"x": 2}, "4"}</pre>
It should read:
<pre>{"+x * -x", Env{"x": 2}, "4"}</pre>
(Thanks to Shinji Dosaka, 2016-07-15.)
</p>
<p>
<b>p.347, Exercise 12.8</b>: For "like <code>json.Marshal</code>",
read "like <code>json.Unmarshal</code>".