From 580e126266b2ccef8f73c1b5aa49f2983339641b Mon Sep 17 00:00:00 2001 From: Nuno Mendes <98030270+nm-remarkable@users.noreply.github.com> Date: Sun, 15 Sep 2024 20:16:57 +0200 Subject: [PATCH] Add .patch for 108_labeled_switch --- patches/patches/108_labeled_switch.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/patches/108_labeled_switch.patch 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", .{}),