Skip to content

Commit c4b0447

Browse files
committed
Fix wrong method name in Chapter 16
1 parent 93709ef commit c4b0447

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

16_canvas.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ can see the effect of the control point: the lines leaving the lower
323323
corners start off in the direction of the control point and then
324324
((curve)) toward their target.
325325

326-
(((canvas)))(((bezierCurve method))) The `bezierCurve` method draws a
326+
(((canvas)))(((bezierCurveTo method))) The `bezierCurveTo` method draws a
327327
similar kind of curve. Instead of a single ((control point)), this one
328328
has two—one for each of the ((line))'s endpoints. Here is a similar sketch to
329329
illustrate the behavior of such a curve:

html/errata.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ <h2>Chapter 14</h2>
3838
and <a href="14_event.html#p_fndkFYbayW">comment</a> for a better
3939
way.</p>
4040

41+
<h2>Chapter 16</h2>
42+
43+
<p><strong>Page 281</strong> (Curves): The text refers to
44+
the <code>bezierCurve</code> method. This method is actually
45+
called <code>bezierCurveTo</code> (as in the example code).</p>
46+
4147
</article>

0 commit comments

Comments
 (0)