Skip to content

Commit 6a5b6a6

Browse files
committed
Fix parentheses in Egg example in Chapter 11
Add errata entry.
1 parent 95025bf commit 6a5b6a6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

11_language.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ commas.
7070

7171
----
7272
do(define(x, 10),
73-
if(>(x, 5)),
73+
if(>(x, 5),
7474
print("large"),
75-
print("small"))
75+
print("small")))
7676
----
7777

7878
(((block)))The ((uniformity)) of the ((Egg language)) means that

html/errata.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ <h2>Chapter 10</h2>
3737
the <code>every</code> method is incorrect. The call should be
3838
to <code>myMode.onLoad.forEach</code> instead.</p>
3939

40+
<h2>Chapter 11</h2>
41+
42+
<p><strong>Page 192</strong> (Parsing): The example Egg program has
43+
its parentheses distributed incorrectly. One closing parentheses from
44+
the second line should be moved to the end of the last line.</p>
45+
4046
<h2>Chapter 14</h2>
4147

4248
<p><strong>Page 242</strong> (Mouse Motion): The example

0 commit comments

Comments
 (0)