Skip to content

Commit acfdd2b

Browse files
authored
Update Class name for RaceTrack (exercism#2051)
Class name in instructions.md is not consistent with the Class name in the src file. This may be a little confusing when following the instructions. I changed it to RaceTrack to match the src file.
1 parent 247a9ed commit acfdd2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/concept/need-for-speed/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ car.distanceDriven();
7070

7171
## 6. Check if a remote control car can finish a race
7272

73-
To finish a race, a car has to be able to drive the race's distance. This means not draining its battery before having crossed the finish line. Implement the `Race.carCanFinish()` method that takes a `NeedForSpeed` instance as its parameter and returns `true` if the car can finish the race; otherwise, return `false`:
73+
To finish a race, a car has to be able to drive the race's distance. This means not draining its battery before having crossed the finish line. Implement the `RaceTrack.carCanFinish()` method that takes a `NeedForSpeed` instance as its parameter and returns `true` if the car can finish the race; otherwise, return `false`:
7474

7575
```java
7676
int speed = 5;
7777
int batteryDrain = 2;
7878
var car = new NeedForSpeed(speed, batteryDrain);
7979

8080
int distance = 100;
81-
var race = new Race(distance);
81+
var race = new RaceTrack(distance);
8282

8383
race.carCanFinish(car);
8484
// => true

0 commit comments

Comments
 (0)