mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-26 01:20:30 +00:00
Add .patch for 108_labeled_switch
This commit is contained in:
parent
335a78f8f5
commit
580e126266
1 changed files with 11 additions and 0 deletions
11
patches/patches/108_labeled_switch.patch
Normal file
11
patches/patches/108_labeled_switch.patch
Normal file
|
@ -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", .{}),
|
Loading…
Reference in a new issue