Skip to content

Fix typo/example #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Files are how you store information
on a[^normal] computer so that it can still be there when your program
is done running.

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

[^normal]: *normal
3 changes: 1 addition & 2 deletions src/generics/raw_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ void main() {

Raw types exist for two basic reasons

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

Expand Down
2 changes: 1 addition & 1 deletion src/integers_ii/base_16_integer_literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ deals with colors in RGB - Red, Green, Blue - format. `0xFFFFFF` is white, `0xFF


[^everything]: Okay to be real with you, every number system is a base 10 system.
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.
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.
2 changes: 1 addition & 1 deletion src/interfaces/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Mutt implements Dog {
}
```

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

Expand Down
2 changes: 1 addition & 1 deletion src/objects/override_equals_and_hashCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Position {
}
```

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

```java,no_run
class Position {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/reverse_domain_name_notation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ of that - `com.google`.[^thisiswhy]

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`.

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.
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.


[^shared]: That might be mixed with other code written by different companies or by different people.
Expand Down
2 changes: 1 addition & 1 deletion src/records/declaration.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ record Pants() {}
```

[^astowhy]: As to why you might want to give an empty list of record components,
its nuanced. For now its just for fun.
it's nuanced. For now it's just for fun.
2 changes: 1 addition & 1 deletion src/time/duration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
}
```

You can use these get the duration between two `Instant`s with
You can use these to get the duration between two `Instant`s with
`Duration.between`.

```java
Expand Down
2 changes: 1 addition & 1 deletion src/time/local_time.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
}
```

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

```java
import java.time.LocalTime;
Expand Down