Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f15d69f

Browse files
Switch II Challenges: Add return to method enemy (#116)
Co-authored-by: Ethan McCue <[email protected]>
1 parent c9fa3ad commit f15d69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/switch_ii/challenges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum NaturalEnemy {
2727
}
2828
2929
NaturalEnemy enemy(Profession p) {
30-
switch (p) {
30+
return switch (p) {
3131
case FIREFIGHTER -> {
3232
// CODE HERE
3333
};

0 commit comments

Comments
 (0)