Skip to content

Commit f1254b2

Browse files
authored
Fix/grammar (#127)
* Remove word extra * Fix grammar * Fix grammar * Fix grammar * Fix tyo * Fix typo * Fix typo * Fix grammar
1 parent c6a7fa9 commit f1254b2

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

src/compilation/modules.md

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

33
For reasons that will become apparent as we proceed,
4-
it is best if all all the code you intend to share
4+
it is best if all the code you intend to share
55
is contained within a named module.
66

77
This means at minimum your classes would need to be in packages

src/compilation/running_compiled_code.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ you would run `java --class-path output chopin.Impromptu`.
1818
`--class-path` should be self-explanatory. It is the path where `java`
1919
will look for class files.
2020

21-
But if you do not have any classes in the unnamed package - which will
22-
be hopefully be the case when you share code with others[^conflicts] -
21+
But if you do not have any classes in the unnamed package - which will hopefully be the case when you share code with others[^conflicts] -
2322
you instead want to run your code like this.
2423

2524
```

src/hardware/motherboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ All of these parts, and the parts I didn't mention, are connected to
44
a big circuit board called a "motherboard."
55

66
The motherboard connects the CPU, RAM, and any hard drive(s) such that they
7-
can "talk" to eachother. The details of how it does this aren't super important, so just imagine
7+
can "talk" to each other. The details of how it does this aren't super important, so just imagine
88
that a tiny wizard lives inside it.

src/lambdas/functional_interfaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Functional Interfaces
22

3-
If an interface has only a one method that needs to be implemented we would call that a "functional interface."[^SAM]
3+
If an interface has only one method that needs to be implemented we would call that a "functional interface."[^SAM]
44

55
```java
66
interface Band {
@@ -34,7 +34,7 @@ interface Band {
3434
}
3535
```
3636

37-
Functions take input and return an output. We call them functional interfaces because with you can treat them as being functions whose input and output are the same as that one method to be implemented.
37+
Functions take input and return an output. We call them functional interfaces because you can treat them as being functions whose input and output are the same as that one method to be implemented.
3838

3939

4040
[^SAM]: You might also see these referred to as SAM interfaces. SAM for Single Abstract Method.

src/modules/requires.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module human {
3232
}
3333
```
3434

35-
These `requires` are not allowed form "cycles."
35+
These `requires` are not allowed to form "cycles."
3636
This means that `cat` cannot require `dog` if `dog` also
3737
requires `cat`, indirectly or otherwise.
3838

src/packaging/jar_files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ are just ZIP files with a few special bits of "metadata."
66
ZIP files are a common way of bundling a bunch of files up into one file.[^compression]
77

88
You don't need to know exactly where this metadata goes or what all of it is for yet,
9-
just that at a high level its all just files in a ZIP.
9+
just that at a high level it's all just files in a ZIP.
1010

1111
[^compression]: This bundling up also generally includes "compression," where
1212
the single file might be smaller than the combined sizes of its components. Most people don't

src/strings_ii/strip_extra_whitespace.md

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

3-
If you have a `String` which might contains some extra "trailing" whitespace or extra "leading"
3+
If you have a `String` which might contains some "trailing" whitespace or "leading"
44
whitespace, you can remove that by using the `.strip` method.
55

66
This will give a new `String` with both the leading and trailing whitespace removed.

0 commit comments

Comments
 (0)