Skip to content

Commit d42558d

Browse files
committed
Switch II Challenges: Add return to method enemy
1 parent e5a2d1a commit d42558d

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)