diff --git a/errata.html b/errata.html index 1adac34..24a3655 100644 --- a/errata.html +++ b/errata.html @@ -18,7 +18,7 @@ pre {
- 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.)
@@ -61,18 +61,25 @@ pre {
- p.52, ¶2: for "an synonym", read "a synonym", twice.
+ 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.)
- p.52, ¶9: for "The integer arithmetic operators", read + p.52, ¶9: For "The integer arithmetic operators", read "The arithmetic operators". (Thanks to Yoshiki Shibata, 2015-12-20.)
- 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.) @@ -85,18 +92,23 @@ 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.75, ¶4: for "%u", read "%o".
+ p.75, ¶4: For "%u", read "%o".
(Thanks to William Hannish, 2015-12-21.)
- 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.288, code display following ¶4: in the import declaration, for
+ 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.288, code display following ¶4: In the import declaration, for
"database/mysql", read "database/sql".
(Thanks to Jose Colon Rodriguez, 2016-01-09.)
- p.362: the gopl.io/ch13/bzip program
+ 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
proposed rules for passing pointers between Go and C code
because the C function bz2compress temporarily stores a Go