From b0f318b662a3db61d3635bb714690721e5f4672c Mon Sep 17 00:00:00 2001
From: Alan Donovan
- 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.)
Errata
- 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.)
- 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