Skip to content

Commit b3ede81

Browse files
authored
Fix typos/grammar/code examples (#80)
* Fix typos * Fix grammar * Fix - Switch statement was not exhaustive * Fix typo * Fix typo * Fix typo * Fix typo * Fix typo * Fix grammar * Undo switch exhaustiveness
1 parent 14618c7 commit b3ede81

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

src/instance_methods/challenges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void main() {
111111

112112
## Challenge 4.
113113

114-
Make a `Rectange` class which has a `width` field and a `height`
114+
Make a `Rectangle` class which has a `width` field and a `height`
115115
field. Give it an instance method named `toCharArray` which gives
116116
a `char[]` that can be printed to display a rectangle of the given
117117
width and height.

src/multi_file_programs/the_anonymous_main_class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ We call it anonymous because we never gave it a name.
1515

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

18-
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.
18+
If you take any code we've produced up until now and wrap it with `class Main {}` it will continue to work as-is.
1919

2020
```java
2121
class Main {

src/operating_systems/abstractions.md

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

3-
The most important jobs of an operating system is to "abstract"
3+
The most important job of an operating system is to "abstract"
44
over the hardware.
55

66
You shouldn't need to know what brand network card you have in order

src/operating_systems/defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ only had text based interfaces. In many practical ways, people were closer to th
1515

1616
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
1717
about computers was dictated for you by the fact that you grew up interacting with them on a touch screen
18-
instead of on a terminal. Things are not as intimiating as they seem.
18+
instead of on a terminal. Things are not as intimidating as they seem.
1919

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

src/static_methods/factories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Position {
1818
~void main() {}
1919
```
2020

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

2323
```java
2424
class Position {

src/strings_ii/UPPERCASE.md

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

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

66
```java
77
void main() {

src/strings_ii/check_if_blank.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

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

5-
The difference is that an empty `String` has actually zero characters. A blank `String`
6-
is can have characters, so long as those characters are what we would consider whitespace.
5+
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.
76
That is, things like spaces and newlines.
87

98
```java

src/switch/challenges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ enum Bear {
180180
enum Action {
181181
LAY_DOWN,
182182
FIGHT_BACK,
183-
RUN_AWAY
183+
RUN_AWAY,
184184
YEET
185185
}
186186

src/the_terminal/windows_subsystem_for_linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Both of these differ in significant ways from bash so, if at all possible, you s
77

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

10-
[^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
10+
[^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

0 commit comments

Comments
 (0)