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 c9fa3ad commit f15d69fCopy full SHA for f15d69f
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