Skip to content

Commit 741b11e

Browse files
committed
Fix mismatch between argument name in code and text
1 parent d8baf92 commit 741b11e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

06_object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ element in the fifth row is (using zero-based indexing) stored at
743743
position 4 × _width_ + 2.
744744

745745
The constructor function takes a width, a height, and an optional
746-
content function that will be used to fill in the initial values.
746+
`element` function that will be used to fill in the initial values.
747747
There are `get` and `set` methods to retrieve and update elements in
748748
the matrix.
749749

@@ -944,7 +944,7 @@ superclass's constructor through the `super` keyword. This is necessary
944944
because if this new object is to behave (roughly) like a `Matrix`, it
945945
is going to need the instance properties that matrices have.
946946
To ensure the matrix is symmetrical, the constructor wraps the
947-
`content` method to swap the coordinates for values below the
947+
`element` function to swap the coordinates for values below the
948948
diagonal.
949949

950950
The `set` method again uses `super` but this time not to call the

html/errata.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ <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 6</h2>
34+
35+
<p><strong>Page 111</strong> <em>Inheritance</em>: In the second
36+
paragraph below the example code, instead of “<code>content</code>
37+
method”, the text should say “<code>element</code> function”.
38+
3339
<h2>Chapter 10</h2>
3440

3541
<p><strong>Page 168</strong> (1st) <em>Modules as Building Blocks</em>: In “each

0 commit comments

Comments
 (0)