Skip to content

Commit 65df1f6

Browse files
authored
Fix/grammar (#79)
* Fix typo * Delete extra word * Fix grammar * Fix grammar * Fix grammar * Fix grammar * Fix challenge
1 parent 186fe78 commit 65df1f6

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Initializion with Size
1+
# Initialization with Size
22

33
The Nintendo GameBoy had a screen resolution of 160 x 144.
44
To store the value of each pixel[^bw] you would need an array 23,040 items
55
long.
66

77
To support this without you writing the word `false` 23,040 times,
8-
arrays can be made with just by giving a size and skipping the initializer.
8+
arrays can be made just by giving a size and skipping the initializer.
99

1010
```java,no_run
1111
boolean[] pixels = new boolean[23040];
@@ -14,4 +14,4 @@ boolean[] pixels = new boolean[23040];
1414
So you have to say `new` followed by the type of element in the array, `[`, the size of the array and `]`.
1515

1616

17-
[^bw]: The original GameBoy wasn't actually just black and white. It supported 7 shades of gray, so a `boolean` wouldn't technically to be enough to represent a pixel's state. You'd have to use something with at least 8 states, not just 2.
17+
[^bw]: The original GameBoy wasn't actually just black and white. It supported 7 shades of gray, so a `boolean` wouldn't technically be enough to represent a pixel's state. You'd have to use something with at least 8 states, not just 2.

src/classes/challenges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class SquareRoot {
105105
double negativeRoot;
106106
}
107107
108-
void squareRoot(double value) {
108+
SquareRoot squareRoot(double value) {
109109
// -----------
110110
// CODE HERE
111111
// -----------

src/classes/field_access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Field Access
22

3-
You can access the value of any field on a class by writing the name of a variable holding an instance
3+
You can access the value of any field in a class by writing the name of a variable holding an instance
44
of that class, `.`, then the name of that field.
55

66
```java

src/classes/field_initialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
You can set an initial value for a field in a few ways.
44

5-
One is to access to assign the field directly on the instance created.
5+
One is to assign the field directly on the instance created.
66

77
```java
88
class Muppet {

src/classes/instances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void main() {
1515
}
1616
```
1717

18-
Very similarly to arrays, the output from printing an instance of a class might seem like gibberish (`Main$Muppet@1be6f5c3`).
18+
Very similar to arrays, the output from printing an instance of a class might seem like gibberish (`Main$Muppet@1be6f5c3`).
1919
You will learn how to make it nicer later.
2020

2121
[^var]: I haven't used it in many code samples thus far, but if you remember `var` this is one of the times

src/instance_methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ class Muppet {
1919
We call these instance methods because you need an instance of the class in order
2020
to call the method.
2121

22-
[^kermitangry]: If you haven't seen the muppets this might have go over your head,
22+
[^kermitangry]: If you haven't seen the muppets this might go over your head,
2323
but Kermit [randomly gets really mad.](https://www.youtube.com/watch?v=SVDgHEg2jnY)

0 commit comments

Comments
 (0)