Skip to content

Commit 56b61ee

Browse files
committed
Add bad numbers for script dataset mistake to errata
Issue marijnh#485
1 parent 22b4bf0 commit 56b61ee

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

05_higher_order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ for (let script of SCRIPTS) {
551551
}
552552
}
553553
console.log(Math.round(total / count));
554-
// → 1188
554+
// → 1165
555555
```
556556

557557
But it is harder to see what was being computed and how. And because

html/errata.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ <h2>Chapter 2</h2>
3030
<p><strong>Page 34</strong> (1st) <em>Updating Bindings Succintly</em>: Where it
3131
says <code>counter-</code> it should be <code>counter--</code>.</p>
3232

33+
<h2>Chapter 5</h2>
34+
35+
<p><strong>Page 91</strong> <em>Composability</em>: Due to an initial
36+
mistake in the script data set, the results of the computations on
37+
this page differ from the ones with the current, corrected data. The
38+
average year for living scrips should be 1165, the average for
39+
non-living scripts should be 204.</p>
40+
3341
<h2>Chapter 6</h2>
3442

3543
<p><strong>Page 111</strong> (2nd) <em>Inheritance</em>: In the second

0 commit comments

Comments
 (0)