summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorNuno Mendes <98030270+nm-remarkable@users.noreply.github.com>2024-09-15 20:16:57 +0200
committerNuno Mendes <98030270+nm-remarkable@users.noreply.github.com>2024-09-15 20:16:57 +0200
commit580e126266b2ccef8f73c1b5aa49f2983339641b (patch)
tree0776cf75a088281eaad1758cb9902688ff1d5488 /patches
parent335a78f8f5ef8b86922dc241422acb033e0b3b2a (diff)
Add .patch for 108_labeled_switch
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/108_labeled_switch.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/patches/108_labeled_switch.patch b/patches/patches/108_labeled_switch.patch
new file mode 100644
index 0000000..dfb65dd
--- /dev/null
+++ b/patches/patches/108_labeled_switch.patch
@@ -0,0 +1,11 @@
+--- a/exercises/108_labeled_switch.zig
++++ b/exercises/108_labeled_switch.zig
+@@ -26,7 +26,7 @@ pub fn main() void {
+ // try to fix it!
+ pr: switch (@as(PullRequestState, PullRequestState.Draft)) {
+ PullRequestState.Draft => continue :pr PullRequestState.InReview,
+- PullRequestState.InReview => continue :pr PullRequestState.Rejected,
++ PullRequestState.InReview => continue :pr PullRequestState.Approved,
+ PullRequestState.Approved => continue :pr PullRequestState.Merged,
+ PullRequestState.Rejected => std.debug.print("The pull request has been rejected", .{}),
+ PullRequestState.Merged => std.debug.print("The pull request has been merged", .{}),