Skip to content

Fix typos/grammar/code examples #80

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 10 commits into from
Jul 16, 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/instance_methods/challenges.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void main() {

## Challenge 4.

Make a `Rectange` class which has a `width` field and a `height`
Make a `Rectangle` class which has a `width` field and a `height`
field. Give it an instance method named `toCharArray` which gives
a `char[]` that can be printed to display a rectangle of the given
width and height.
Expand Down
2 changes: 1 addition & 1 deletion src/multi_file_programs/the_anonymous_main_class.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ We call it anonymous because we never gave it a name.

We call it the main class because you are only allowed to skip naming a class if it is the one you use to start your program, and that requires a `void main()` method.

If you take any code we've produced up until now and put wrap it with `class Main {}` it will continue to work as-is.
If you take any code we've produced up until now and wrap it with `class Main {}` it will continue to work as-is.

```java
class Main {
Expand Down
2 changes: 1 addition & 1 deletion src/operating_systems/abstractions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Abstractions

The most important jobs of an operating system is to "abstract"
The most important job of an operating system is to "abstract"
over the hardware.

You shouldn't need to know what brand network card you have in order
Expand Down
2 changes: 1 addition & 1 deletion src/operating_systems/defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ only had text based interfaces. In many practical ways, people were closer to th

So think about that whenever you feel like you have a lot left to learn. A lot of what you do and do not know
about computers was dictated for you by the fact that you grew up interacting with them on a touch screen
instead of on a terminal. Things are not as intimiating as they seem.
instead of on a terminal. Things are not as intimidating as they seem.

[^lawsuit]: https://en.wikipedia.org/wiki/United_States_v._Microsoft_Corp.

Expand Down
2 changes: 1 addition & 1 deletion src/static_methods/factories.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Position {
~void main() {}
```

It would be reasonable want to add an overloaded constructor for when `y` is `0`.
It would be reasonable to want to add an overloaded constructor for when `y` is `0`.

```java
class Position {
Expand Down
2 changes: 1 addition & 1 deletion src/strings_ii/UPPERCASE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# UPPERCASE

Similarly, if you have a `String` which potentially contains lower-cased letters, you can get a new `String` with everything
transformed into lower-case using the `.toUpperCase()` method.
transformed into upper-case using the `.toUpperCase()` method.

```java
void main() {
Expand Down
3 changes: 1 addition & 2 deletions src/strings_ii/check_if_blank.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

You can check if a `String` is blank by using the `.isBlank` method.

The difference is that an empty `String` has actually zero characters. A blank `String`
is can have characters, so long as those characters are what we would consider whitespace.
The difference is that an empty `String` has actually zero characters. A blank `String` can have characters, so long as those characters are what we would consider whitespace.
That is, things like spaces and newlines.

```java
Expand Down
2 changes: 1 addition & 1 deletion src/switch/challenges.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ enum Bear {
enum Action {
LAY_DOWN,
FIGHT_BACK,
RUN_AWAY
RUN_AWAY,
YEET
}

Expand Down
2 changes: 1 addition & 1 deletion src/the_terminal/windows_subsystem_for_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Both of these differ in significant ways from bash so, if at all possible, you s

This will let you follow along with the bash snippets you'll see later in this book.[^other_shells]

[^other_shells]: It is certainly possible for me to also include instruction for PowerShell and batch but it doesn't feel practical. I spend most of my working hours using batch and can test commands on the machine I use to write this. It would be hard for me to do that with the Windows specific shells
[^other_shells]: It is certainly possible for me to also include instruction for PowerShell and batch but it doesn't feel practical. I spend most of my working hours using bash and can test commands on the machine I use to write this. It would be hard for me to do that with the Windows specific shells