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 e5a2d1a commit d42558dCopy full SHA for d42558d
src/switch_ii/challenges.md
@@ -27,7 +27,7 @@ enum NaturalEnemy {
27
}
28
29
NaturalEnemy enemy(Profession p) {
30
- switch (p) {
+ return switch (p) {
31
case FIREFIGHTER -> {
32
// CODE HERE
33
};
0 commit comments