Skip to content

Commit 7d8079d

Browse files
committed
Misc typo fixes
Closes #266 Closes #264 Closes #267
1 parent 5394770 commit 7d8079d

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

02_program_structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ let caught = 5 * 5;
9595

9696
{{index "let keyword"}}
9797

98-
That's a a second kind of ((statement)). The special word
98+
That's a second kind of ((statement)). The special word
9999
(_((keyword))_) `let` indicates that this sentence is going to define
100100
a binding. It is followed by the name of the binding and, if we want
101101
to immediately give it a value, by an `=` operator and an expression.

03_functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,9 @@ console.log(power(2, 3));
599599
{{index loop, readability, mathematics}}
600600

601601
This is rather close to the way mathematicians define exponentiation
602-
and arguably describes the concept in a more clearly way than the
603-
looping variant does. The function calls itself multiple times with
604-
ever smaller exponents to achieve the repeated multiplication.
602+
and arguably describes the concept more clearly than the looping
603+
variant does. The function calls itself multiple times with ever
604+
smaller exponents to achieve the repeated multiplication.
605605

606606
{{index [function, application], efficiency}}
607607

06_object.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,9 @@ through it but is not its _own_ prototype.
334334
## Class notation
335335

336336
So JavaScript ((class))es are ((constructor)) functions with a
337-
((prototype)) property. That how they work, and until 2015, that's how
338-
you had to write them. These days, we have a less awkward notation.
337+
((prototype)) property. That is how they work, and until 2015, that
338+
was how you had to write them. These days, we have a less awkward
339+
notation.
339340

340341
```{includeCode: true}
341342
class Rabbit {

10_modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ to use (its _((interface))_).
6060
{{index "big ball of mud"}}
6161

6262
Module interfaces have a lot in common with object interfaces, as we
63-
saw them in [Chapter ?](objects#interface). They make part of the
63+
saw them in [Chapter ?](object#interface). They make part of the
6464
module available to the outside world, and keep the rest private. By
6565
restricting the ways in which modules interact with each other, the
6666
system becomes more like ((Lego)), where pieces interact through

0 commit comments

Comments
 (0)