Skip to content

Commit d241ced

Browse files
Fronxmarijnh
Fronx
authored andcommitted
some more natural language fixes
1 parent 7b37098 commit d241ced

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

04_data.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ true, the other is false.
408408
(((phi coefficient)))For binary (boolean) variables, the phi
409409
coefficient provides a good measure of correlation, and is relatively
410410
easy to compute. First we need a matrix _n_, which indicates the
411-
amount of times the various combinations of the two variables were
411+
number of times the various combinations of the two variables were
412412
observed. For example, we could take the event of eating pizza, and
413413
put that in a table like this:
414414

06_object.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ from each other. These compartments ended up with the name “objects.”
2222

2323
(((encapsulation)))(((method)))(((interface)))An object is a hard
2424
shell that encapsulates the gooey complexity inside of it, and instead
25-
offers us a few of knobs and connectors (think methods) that present
25+
offers us a few knobs and connectors (think methods) that present
2626
an _interface_ through which the object is to be used. The idea is
2727
that the interface is relatively simple, and all the complex things
2828
going on _inside_ of the object can be ignored when working with it.
@@ -108,7 +108,7 @@ value to `this`.
108108

109109
There is a method similar to `apply`, called `call`, which also calls
110110
the function, but takes its arguments normally, rather than as an
111-
array. It is used to call a function with with a specific `this`
111+
array. It is used to call a function with a specific `this`
112112
value.
113113

114114
[source,javascript]
@@ -367,7 +367,7 @@ distinguishes between _enumerable_ and _non-enumerable_ properties.
367367

368368
All properties that we create by simply assigning to them are
369369
enumerable. The standard properties in `Object.prototype` are all
370-
non-enumerable, which is why they do not show up such a `for`/`in`
370+
non-enumerable, which is why they do not show up in such a `for`/`in`
371371
loop.
372372

373373
(((defineProperty function)))It is possible to define our own
@@ -405,7 +405,7 @@ of information than what the `in` operator gives us.
405405

406406
When you are worried that someone (some other code you loaded into
407407
your program) might have messed with the base object prototype, it is
408-
recommended to write you `for`/`in` loops like this:
408+
recommended to write your `for`/`in` loops like this:
409409

410410
[source,javascript]
411411
----
@@ -502,7 +502,7 @@ of these methods:
502502
* `minWidth()` returns a number indicating its minimum width (in
503503
characters).
504504

505-
* `draw(width, height)` returns an array of string with length
505+
* `draw(width, height)` returns an array of strings with length
506506
`height`, each of them `width` characters wide. This represents the
507507
content of the cell.
508508

@@ -620,10 +620,10 @@ TextCell.prototype.draw = function(width, height) {
620620
----
621621

622622
The `repeat` function helps build up strings that repeat a single
623-
character a given amount of times. The `draw` method uses it to add
623+
character a given number of times. The `draw` method uses it to add
624624
“padding” to lines, so that they all have the required length.
625625

626-
And try it out by building up a checkerboard.
626+
Let's try it out by building up a checkerboard.
627627

628628
[source,javascript]
629629
----
@@ -944,7 +944,7 @@ space. It takes `x` and `y` parameters (numbers), which it saves to
944944
properties by the same name.
945945

946946
Give the `Point` prototype two methods, `plus` and `minus`, which take
947-
another point as parameter, and return a new point that has the sum or
947+
another point as a parameter, and return a new point that has the sum or
948948
difference of the two points’ (the one in `this` and the parameter) x
949949
and y coordinates.
950950

@@ -1017,8 +1017,8 @@ object. The `minWidth` and `minHeight` methods call through to the
10171017
corresponding methods in the `inner` cell, but ensure that no number
10181018
less than the given size is returned (possibly using `Math.max`).
10191019

1020-
Don't forget to add a `draw` method that simply forwards the call the
1021-
inner cell.
1020+
Don't forget to add a `draw` method that simply forwards the call to
1021+
the inner cell.
10221022

10231023
!!solution!!
10241024

0 commit comments

Comments
 (0)