Skip to content

Commit dbd5296

Browse files
authored
chore: fix slides (#492)
Signed-off-by: Anthony D. Mays <[email protected]>
1 parent faa4f80 commit dbd5296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slides/src/Slides/Lessons/Lesson16.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void testCreateCar() {
115115
var car = new Car("Toyota", "Camry", 120);
116116
117117
// Assert
118-
Assertions.assertFalse(car.isOn());
118+
Assertions.assertFalse(car.getIsOn());
119119
Assertions.assertEquals(Gear.PARK, car.getGear());
120120
}
121121
`}
@@ -358,7 +358,7 @@ public class Car { // <-- Class definition, public to things outside this packag
358358
if (currentGear != Gear.DRIVE) {
359359
throw new IllegalStateException("Car is not in drive");
360360
}
361-
speedInMph = Math.max(speedInMph, maxSpeedInMph);
361+
this.speedInMph = Math.max(speedInMph, maxSpeedInMph); // Disambiguation!
362362
}
363363
}
364364
`}

0 commit comments

Comments
 (0)