From bc54a9a664da1b6c12e8fd5ebd4850713a181f13 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 6 Sep 2016 22:55:03 -0400 Subject: [PATCH] errata: p.320: two fixes to evaluator test case --- errata.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/errata.html b/errata.html index 58bf687..935a8da 100644 --- a/errata.html +++ b/errata.html @@ -213,6 +213,17 @@ pre { (Thanks to Jose Colon Rodriguez, 2016-01-09.)

+

+ p.320, code display following ΒΆ1: The suggested test case + does not exercise the unary plus operator, nor is + the eval package qualifier appropriate: +

{"-x * -x", eval.Env{"x": 2}, "4"}
+ + It should read: +
{"+x * -x", Env{"x": 2}, "4"}
+ (Thanks to Shinji Dosaka, 2016-07-15.) +

+

p.347, Exercise 12.8: For "like json.Marshal", read "like json.Unmarshal".