We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f25754 commit 1833671Copy full SHA for 1833671
exercises/concept/need-for-speed/.docs/instructions.md
@@ -77,15 +77,15 @@ int speed = 5;
77
int batteryDrain = 2;
78
var car = new NeedForSpeed(speed, batteryDrain);
79
80
-int distance = 100;
81
-var race = new RaceTrack(distance);
+int distance1 = 100;
+var race1 = new RaceTrack(distance1);
82
83
-car.distanceDriven()
84
-// => 0
+int distance2 = 300;
+var race2 = new RaceTrack(distance2);
85
86
-race.canFinishRace(car);
+race1.canFinishRace(car);
87
// => true
88
89
90
-// => 100
+race2.canFinishRace(car);
+// => false
91
```
0 commit comments