| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-01-07 | Update: Remove the 4th branch in favour of just making that the else branch | mikkurogue | |
| 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> | |||
| 2025-01-04 | Update: 108 Labeled switch example to contain default case for exhaustion | mikkurogue | |
| Update example text to give clarity on default/exhaustive case. Reasoning: The input for the example will not compile if user would want to test this for the logic of a labeled switch. Due the input not being an exhaustive input but rather "any u8 integer" (for the lack of better terminology) we need to use the else branch to indicate that the default case is handled, in this case by just emulating the '4' branch, but this could return an error.InvalidCaseProvided for example. Signed-off-by: mikkurogue <michael.lindemans@outlook.com> | |||
| 2024-09-20 | Minor improvements. | Chris Boesch | |
| 2024-09-18 | improve explanantions in labeled switch | Nuno Mendes | |
| 2024-09-16 | update labeled switch to also have a break statement | Nuno Mendes | |
| 2024-09-15 | 108: Add a exercise for a labeled switch | Nuno Mendes | |
