From b0f318b662a3db61d3635bb714690721e5f4672c Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Mon, 28 Dec 2015 16:09:07 -0500 Subject: [PATCH 1/5] errata: p.73, 'a' -> 'an' Change-Id: Id6cc21a89a675f3164de40f4e9bd070f809b2073 --- errata.html | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/errata.html b/errata.html index 7e19ac9..4876833 100644 --- a/errata.html +++ b/errata.html @@ -18,7 +18,7 @@ pre {

Errata

- p.9, ¶2: for "can compared", read "can be compared". + p.9, ¶2: For "can compared", read "can be compared". (Thanks to Antonio Macías Ojeda, 2015-10-22. Corrected in the second printing.)

@@ -52,15 +52,15 @@ pre {

- p.52, ¶2: for "an synonym", read "a synonym", twice. + p.52, ¶2: For "an synonym", read "a synonym", twice. (Corrected in the second printing.)

- p.68: the table of UTF-8 encodings is missing a bit from each first byte. + p.68: The table of UTF-8 encodings is missing a bit from each first byte. The corrected table is shown below. (Thanks to Akshay Kumar, 2015-11-02. - Corrected in the Second printing.) + Corrected in the second printing.)

@@ -70,13 +70,18 @@ pre {
 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx  65536−0x10ffff  (other values unused)

- p.74: the comment in gopl.io/ch3/printints should say + p.73, ¶1: For "a exercise", read "an exercise". + (Thanks to vrajmohan, 2015-12-28.) +

+ +

+ p.74: The comment in gopl.io/ch3/printints should say fmt.Sprint, not fmt.Sprintf. (Corrected in the second printing.)

- p.76: the comment // "time.Duration 5ms0s should have + p.76: The comment // "time.Duration 5ms0s should have a closing double-quotation mark. (Corrected in the second printing.)

@@ -92,25 +97,25 @@ pre {

- p.132, code display following ¶3: the final comment + p.132, code display following ¶3: The final comment should read:
// compile error: can't assign func(int, int) int to func(int) int
(Thanks to Toni Suter, 2015-11-21.)

- p.166, ¶2: for "way", read "a way". + p.166, ¶2: For "way", read "a way".

- p.200, TestEval function: the format string in the final call to + p.200, TestEval function: The format string in the final call to t.Errorf should format test.env with %v, not %s. (Thanks to Mitsuteru Sawa, 2015-12-07.)

- p.362: the gopl.io/ch13/bzip program + p.362: The gopl.io/ch13/bzip program does not comply with the proposed rules for passing pointers between Go and C code because the C function bz2compress temporarily stores a Go From 7c2d57b49156a02adda94a960964d371a9de7a83 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 5 Jan 2016 11:26:13 -0500 Subject: [PATCH 2/5] errata: p.347: json.Marshal Change-Id: Id8f5b53617fedd5a23086bdb7304e0841472a25e --- errata.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/errata.html b/errata.html index 9dee8ae..0700eb7 100644 --- a/errata.html +++ b/errata.html @@ -134,6 +134,12 @@ pre { (Thanks to Mitsuteru Sawa, 2015-12-07.)

+

+ p.347, Exercise 12.8: for "like json.Marshal", + read "like json.Unmarshal". + (Thanks to chai2010, 2016-01-01.) +

+

p.362: The gopl.io/ch13/bzip program does not comply with the From ce556fed9150b7dedfc00f013ae28c9a16503678 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 7 Jan 2016 10:03:16 -0500 Subject: [PATCH 3/5] errata: p.48 ReadByte Change-Id: Ieab060609d92e9ac07c70406eabf488298ee5e9e --- errata.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/errata.html b/errata.html index 0700eb7..166c7d1 100644 --- a/errata.html +++ b/errata.html @@ -60,6 +60,13 @@ pre { (Thanks to Peter Jurgensen, 2015-11-21.)

+

+ p.48: f.ReadByte() serves as an + example of a reference to f, but *os.File has no such + method. For ReadByte, read Stat, four times. + (Thanks to Peter Olsen, 2015-01-06.) +

+

p.52, ¶2: For "an synonym", read "a synonym", twice. (Corrected in the second printing.) From c75d53a12b272135296a25e9252e4b00c257eb76 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 7 Jan 2016 10:07:45 -0500 Subject: [PATCH 4/5] errata: quotation Change-Id: I261d03d694e61af9ee450fb5c51134bb59cc9cb3 --- errata.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errata.html b/errata.html index 166c7d1..d0c5694 100644 --- a/errata.html +++ b/errata.html @@ -63,7 +63,7 @@ pre {

p.48: f.ReadByte() serves as an example of a reference to f, but *os.File has no such - method. For ReadByte, read Stat, four times. + method. For "ReadByte", read "Stat", four times. (Thanks to Peter Olsen, 2015-01-06.)

From d9d0b8444b67bad9efe53de6f2990a57fc5a6772 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Fri, 8 Jan 2016 09:57:33 -0500 Subject: [PATCH 5/5] errata: p.222, Ex 8.1 Change-Id: I09f345da8784cba8da2e9f4822bf38031adfc06b --- errata.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/errata.html b/errata.html index d0c5694..804be82 100644 --- a/errata.html +++ b/errata.html @@ -141,6 +141,13 @@ pre { (Thanks to Mitsuteru Sawa, 2015-12-07.)

+

+ p.222. Exercise 8.1: the port numbers for London + and Tokyo should be swapped in the final command to + match the earlier commands. + (Thanks to Kiyoshi Kamishima, 2016-01-08.) +

+

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