Skip to content

Commit 648ded8

Browse files
authored
chore: fix typo (#2422)
Initially, it was giving the same hint as the problem above, that asked for the distance driven. This wasn't hinting that we need an extra, separate field to track the battery charge, as demonstrated by many popular solutions.
1 parent 66bd35f commit 648ded8

File tree

1 file changed

+2
-2
lines changed
  • exercises/concept/jedliks-toys/.docs

1 file changed

+2
-2
lines changed

exercises/concept/jedliks-toys/.docs/hints.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
## 3. Display the battery percentage
1616

17-
- Keep track of the distance driven in a [field][fields].
18-
- Initialize the field to a specific value to correspond to the initial battery charge.
17+
- Keep track of the initial battery charge in a [field][fields].
18+
- Initialize the field to a specific value that corresponds to the expected initial battery charge.
1919
- Consider what visibility to use for the field (does it need to be used outside the class?).
2020
- Consider using [string interpolation][string-interpolation] to format the string to return.
2121

0 commit comments

Comments
 (0)