fix(curriculum): change 'display' to 'return' in lab-voting-system challenge (#62305)

This commit is contained in:
Ansh Malgotra 2025-09-22 20:12:35 +05:30 committed by GitHub
parent 923e6c4c7d
commit 0ce17abdd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@ In this lab, you will build a voting system that uses `Map` to create a poll and
- If the `option` exists, the function should check if the `voterId` has already voted for this `option`.
- If the voter has already voted, the function should display the message `Voter <voterId> has already voted for "<option>".`
- If the voter has already voted, the function should return the message `Voter <voterId> has already voted for "<option>".`
- If the voter has not voted, `voterId` should be added to the `Set` of `voters` for this option. The function should return the message `Voter <voterId> voted for "<option>".`