errata: p.73, 'a' -> 'an'
Change-Id: Id6cc21a89a675f3164de40f4e9bd070f809b2073
This commit is contained in:
25
errata.html
25
errata.html
@@ -18,7 +18,7 @@ pre {
|
|||||||
<body>
|
<body>
|
||||||
<h1>Errata</h1>
|
<h1>Errata</h1>
|
||||||
<p>
|
<p>
|
||||||
<b>p.9, ¶2</b>: for "can compared", read "can be compared".
|
<b>p.9, ¶2</b>: For "can compared", read "can be compared".
|
||||||
(Thanks to Antonio Macías Ojeda, 2015-10-22.
|
(Thanks to Antonio Macías Ojeda, 2015-10-22.
|
||||||
Corrected in the second printing.)
|
Corrected in the second printing.)
|
||||||
</p>
|
</p>
|
||||||
@@ -52,15 +52,15 @@ pre {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.52, ¶2</b>: for "an synonym", read "a synonym", twice.
|
<b>p.52, ¶2</b>: For "an synonym", read "a synonym", twice.
|
||||||
(Corrected in the second printing.)
|
(Corrected in the second printing.)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.68</b>: the table of UTF-8 encodings is missing a bit from each first byte.
|
<b>p.68</b>: The table of UTF-8 encodings is missing a bit from each first byte.
|
||||||
The corrected table is shown below.
|
The corrected table is shown below.
|
||||||
(Thanks to Akshay Kumar, 2015-11-02.
|
(Thanks to Akshay Kumar, 2015-11-02.
|
||||||
Corrected in the Second printing.)
|
Corrected in the second printing.)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@@ -70,13 +70,18 @@ pre {
|
|||||||
11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 65536−0x10ffff (other values unused)</pre>
|
11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 65536−0x10ffff (other values unused)</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.74</b>: the comment in <code>gopl.io/ch3/printints</code> should say
|
<b>p.73, ¶1</b>: For "a exercise", read "an exercise".
|
||||||
|
(Thanks to vrajmohan, 2015-12-28.)
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<b>p.74</b>: The comment in <code>gopl.io/ch3/printints</code> should say
|
||||||
<code>fmt.Sprint</code>, not <code>fmt.Sprintf</code>.
|
<code>fmt.Sprint</code>, not <code>fmt.Sprintf</code>.
|
||||||
(Corrected in the second printing.)
|
(Corrected in the second printing.)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.76</b>: the comment <code>// "time.Duration 5ms0s</code> should have
|
<b>p.76</b>: The comment <code>// "time.Duration 5ms0s</code> should have
|
||||||
a closing double-quotation mark.
|
a closing double-quotation mark.
|
||||||
(Corrected in the second printing.)
|
(Corrected in the second printing.)
|
||||||
</p>
|
</p>
|
||||||
@@ -92,25 +97,25 @@ pre {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.132, code display following ¶3</b>: the final comment
|
<b>p.132, code display following ¶3</b>: The final comment
|
||||||
should read:<br/>
|
should read:<br/>
|
||||||
<code>// compile error: can't assign func(int, int) int to func(int) int</code><br/>
|
<code>// compile error: can't assign func(int, int) int to func(int) int</code><br/>
|
||||||
(Thanks to Toni Suter, 2015-11-21.)
|
(Thanks to Toni Suter, 2015-11-21.)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.166, ¶2</b>: for "way", read "a way".
|
<b>p.166, ¶2</b>: For "way", read "a way".
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.200, <code>TestEval</code> function</b>: the format string in the final call to
|
<b>p.200, <code>TestEval</code> function</b>: The format string in the final call to
|
||||||
<code>t.Errorf</code> should format <code>test.env</code> with <code>%v</code>,
|
<code>t.Errorf</code> should format <code>test.env</code> with <code>%v</code>,
|
||||||
not <code>%s</code>.
|
not <code>%s</code>.
|
||||||
(Thanks to Mitsuteru Sawa, 2015-12-07.)
|
(Thanks to Mitsuteru Sawa, 2015-12-07.)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>p.362</b>: the <code>gopl.io/ch13/bzip</code> program
|
<b>p.362</b>: The <code>gopl.io/ch13/bzip</code> program
|
||||||
does not comply with the
|
does not comply with the
|
||||||
<a href='https://github.com/golang/proposal/blob/master/design/12416-cgo-pointers.md'>proposed rules for passing pointers between Go and C code</a>
|
<a href='https://github.com/golang/proposal/blob/master/design/12416-cgo-pointers.md'>proposed rules for passing pointers between Go and C code</a>
|
||||||
because the C function <code>bz2compress</code> temporarily stores a Go
|
because the C function <code>bz2compress</code> temporarily stores a Go
|
||||||
|
|||||||
Reference in New Issue
Block a user