Skip to content

Commit 186fe78

Browse files
authored
Fix grammar (#78)
* Fix grammar * Fix grammar * Fix grammar * Fix grammar and code challenge
1 parent 9106e28 commit 186fe78

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/boxed_primitives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main() {
2424
}
2525
```
2626

27-
We call these primitives which might be null "Boxed Primitives" because you they are made by taking
27+
We call these primitives which might be null "Boxed Primitives" because they are made by taking
2828
the underlying thing and putting it in a "box."[^boxing]
2929

3030

src/boxed_primitives/boolean.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ The type to use for a `boolean` that might be null is `Boolean`.
88
Boolean b = null;
99
System.out.println(b);
1010
b = true;
11-
System.out.println(true);
11+
System.out.println(b);
1212
~}

src/boxed_primitives/challenges.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void main() {
2828

2929
## Challenge 2.
3030

31-
Write a method which takes in a `Integer[]` representing
31+
Write a method which takes in an `Integer[]` representing
3232
a series of distances and prints out every distance
3333
followed by ` kilometers`.
3434

@@ -50,7 +50,7 @@ void printDistances(Integer[] distances) {
5050
}
5151
5252
void main() {
53-
printNames(new String[] {
53+
printDistances(new Integer[] {
5454
45,
5555
99,
5656
23

src/boxed_primitives/character.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ System.out.println(c);
1111
~}
1212
```
1313

14-
Unlike a `char[]`, a `Character[]` will not be have its contents
14+
Unlike a `char[]`, a `Character[]` will not have its contents
1515
shown when printed.
1616

1717
```java

0 commit comments

Comments
 (0)