Просмотр исходного кода

Update: Remove the 4th branch in favour of just making that the else branch

Probably easier to not have an "unused" branch that returns the same as the else branch in the example.

Signed-off-by: mikkurogue <mikkurogue@noreply.codeberg.org>
mikkurogue 7 месяцев назад
Родитель
Сommit
5cdaee7420
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      exercises/108_labeled_switch.zig

+ 0 - 1
exercises/108_labeled_switch.zig

@@ -34,7 +34,6 @@
 //              1 => continue :foo 2,
 //              2 => continue :foo 3,
 //              3 => return,
-//              4 => {},
 //              else => {},
 //          }
 //          std.debug.print("This statement cannot be reached");