Skip to content

Commit 9b69215

Browse files
authored
Fix grammar (#74)
* Fix grammar * Fix syntax * Fix variable name * Change back to IO * Fix spacing * Add spacing and fix grammar * Fix grammar * Fix my own error
1 parent e83ee17 commit 9b69215

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/arrays/challenges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Edit the following program so that the output is zero.
1313
void main() {
1414
// Only change this line
1515
String[] words = { "Sam", "I", "Am" };
16-
System.out.println(array.length);
16+
IO.println(words.length);
1717
}
1818
```
1919

src/arrays/reassignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ System.out.println(numbers.length);
2020
~}
2121
```
2222

23-
This reassignment will not be affect any variables which
23+
This reassignment will not affect any variables which
2424
are aliases for the variable's old value.
2525

2626
```java

src/arrays/relation_to_final_variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final char[] catchphrase = { 'w', 'o', 'a', 'h', '!' };
1212
System.out.println(catchphrase);
1313

1414
// Cannot reassign
15-
// catchphrase = { 'e', 'g', 'a', 'd', 's' }
15+
// catchphrase = new char[] { 'e', 'g', 'a', 'd', 's' }
1616
// but can set elements directly
1717
catchphrase[0] = 'e';
1818
catchphrase[1] = 'g';

src/loops_ii/comparison_to_while.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ while (index < numbers.length) {
5454
~}
5555
```
5656

57-
Us humans, with our tiny monkey brains, can get very lost when things that are related to eachother are separated
57+
Us humans, with our tiny monkey brains, can get very lost when things that are related to each other are separated
5858
by long distances.
5959

6060
In this dimension, for loops are superior. All the bits of code that "control the loop" can be right at the top.

0 commit comments

Comments
 (0)