Skip to content

Commit 50271bf

Browse files
authored
Fix typo/example (#83)
* Fix typo * Fix typo * Fix typo/example * Undo example change * Fix grammar * Fix grammar * Fix grammar * Fix grammar * Fix class name
1 parent d0f6d89 commit 50271bf

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

src/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Files are how you store information
44
on a[^normal] computer so that it can still be there when your program
55
is done running.
66

7-
As such, read files and writing files are tasks you will often want to do.
7+
As such, reading files and writing files are tasks you will often want to do.
88

99
[^normal]: *normal

src/generics/raw_types.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ void main() {
3939

4040
Raw types exist for two basic reasons
4141

42-
1. Every now and then Java isn't smart enough. Trust that there are valid reasons to turn off generics, even
43-
I haven't shown you any yet. Avoid doing so yourself - at least for awhile.
42+
1. Every now and then Java isn't smart enough. Trust that there are valid reasons to turn off generics, even if I haven't shown you any yet. Avoid doing so yourself - at least for awhile.
4443
2. Generics weren't always in Java! Classes that later were made generic had to stay compatible with old "raw"
4544
usages somehow.
4645

src/integers_ii/base_16_integer_literals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ deals with colors in RGB - Red, Green, Blue - format. `0xFFFFFF` is white, `0xFF
3333

3434

3535
[^everything]: Okay to be real with you, every number system is a base 10 system.
36-
Even if what you call "10" is what we would call "sixteen", you always wrap around your base when you write "10." If that doesn't make sense it doesn't matter, but its fascinating to me.
36+
Even if what you call "10" is what we would call "sixteen", you always wrap around your base when you write "10." If that doesn't make sense it doesn't matter, but it's fascinating to me.

src/interfaces/implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Mutt implements Dog {
1818
}
1919
```
2020

21-
Then you all you need to do is declare methods which match up with the methods defined in the interface.
21+
Then all you need to do is declare methods which match up with the methods defined in the interface.
2222
Keep in mind that while you didn't write `public` in the interface, you need to write `public`
2323
when implementing a method from an interface.[^all]
2424

src/objects/override_equals_and_hashCode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Position {
4040
}
4141
```
4242

43-
Then you compare the all the fields to make sure they are equal to each other as well.
43+
Then you compare all the fields to make sure they are equal to each other as well.
4444

4545
```java,no_run
4646
class Position {

src/packages/reverse_domain_name_notation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ of that - `com.google`.[^thisiswhy]
1616

1717
Nowadays people also tend to accept unique prefixes based on accounts you might have on a site. So you might see things like `com.github.their_username_here` for people who have an account with a service like `Github`.
1818

19-
It isn't perfect, nothing would be, but its socially dominant so you should be aware of it. If the code you are writing won't be shared with others you do not need to do this sort of thing yourself.
19+
It isn't perfect, nothing would be, but it's socially dominant so you should be aware of it. If the code you are writing won't be shared with others you do not need to do this sort of thing yourself.
2020

2121

2222
[^shared]: That might be mixed with other code written by different companies or by different people.

src/records/declaration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ record Pants() {}
1616
```
1717

1818
[^astowhy]: As to why you might want to give an empty list of record components,
19-
its nuanced. For now its just for fun.
19+
it's nuanced. For now it's just for fun.

src/time/duration.md

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

20-
You can use these get the duration between two `Instant`s with
20+
You can use these to get the duration between two `Instant`s with
2121
`Duration.between`.
2222

2323
```java

src/time/local_time.md

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

20-
And similarly you can get the current time your computer thinks it is with `LocalName.now()`
20+
And similarly you can get the current time your computer thinks it is with `LocalTime.now()`
2121

2222
```java
2323
import java.time.LocalTime;

0 commit comments

Comments
 (0)