Skip to content

Commit

Permalink
Minor fixes (#58)
Browse files Browse the repository at this point in the history
* Update initialization.md

* Add footnote softening the use of "wrong"

Co-Authored-By: Ken Fogel <[email protected]>

---------

Co-authored-by: Ken Fogel <[email protected]>
  • Loading branch information
bowbahdoe and omniprof authored Nov 12, 2024
1 parent 7aa02e6 commit e535ee1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/static_fields/initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Main {
static String name = "bob";

void main() {
System.out.println(count); // 0
System.out.println(name); // null
System.out.println(count); // 5
System.out.println(name); // bob
}
}
```
Expand All @@ -48,8 +48,8 @@ class Main {
}

void main() {
System.out.println(count); // 0
System.out.println(name); // null
System.out.println(count); // 5
System.out.println(name); // bob
}
}
```
Expand Down
6 changes: 4 additions & 2 deletions src/variables/challenges.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void main() {

## Challenge 5

Some of the variables in this program are named "wrong." Fix them.
Some of the variables in this program are named "wrong."[^byconvention] Fix them.

```java,editable
void main() {
Expand All @@ -100,4 +100,6 @@ void main() {
String FASTRunner = "bolt";
String slowRunner = "tortoise";
}
```
```

[^byconvention]: By currently prevalent social conventions. None are actually "wrong" from the perspective of Java.

0 comments on commit e535ee1

Please sign in to comment.