Skip to content

Commit d97164a

Browse files
committed
Merge branch 'master' into index
2 parents dcdc68d + c31698b commit d97164a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

book/methods-and-initializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ When the VM executes the call to `Brunch()`, it goes like this:
734734

735735
Any arguments passed to the class when we called it are still sitting on the
736736
stack above the instance. The new CallFrame for the `init()` method shares that
737-
stack window, so those arguments implictly get forwarded to the initializer.
737+
stack window, so those arguments implicitly get forwarded to the initializer.
738738

739739
Lox doesn't require a class to define an initializer. If omitted, the runtime
740740
simply returns the new uninitialized instance. However, if there is no `init()`

note/log.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2021/07/26 - responsive index page
2+
2021/07/25 - index page photos
3+
2021/07/24 - work on index page
4+
2021/07/23 - work on index page, change cover colors
5+
2021/07/22 - work on index page
6+
2021/07/21 - work on index page
17
2021/07/20 - work on kindle version
28
2021/07/19 - work on kindle version
39
2021/07/18 - ebook covers, proof in calibre, kindle export

site/methods-and-initializers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ <h3><a href="#invoking-initializers" id="invoking-initializers"><small>28&#8202;
977977
<p>When the VM executes the call to <code>Brunch()</code>, it goes like this:</p><img src="image/methods-and-initializers/init-call-frame.png" alt="The aligned stack windows for the Brunch() call and the corresponding init() method it forwards to." />
978978
<p>Any arguments passed to the class when we called it are still sitting on the
979979
stack above the instance. The new CallFrame for the <code>init()</code> method shares that
980-
stack window, so those arguments implictly get forwarded to the initializer.</p>
980+
stack window, so those arguments implicitly get forwarded to the initializer.</p>
981981
<p>Lox doesn&rsquo;t require a class to define an initializer. If omitted, the runtime
982982
simply returns the new uninitialized instance. However, if there is no <code>init()</code>
983983
method, then it doesn&rsquo;t make any sense to pass arguments to the class when

0 commit comments

Comments
 (0)