aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-14 10:49:09 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-14 10:49:09 -0500
commit545573fc84c2b8e3f281de7eb9bc52281536d5b3 (patch)
treebcac00066425034a1d22183690ee507c32328cbd /patches
parent16dbeea7f5e8c7327709052ed6e0a869f759f871 (diff)
Added ex 45 optionals
(And secretly added the patches/ dir. Don't tell anybody!)
Diffstat (limited to 'patches')
-rw-r--r--patches/45_optionals.patch4
-rw-r--r--patches/README.md9
2 files changed, 13 insertions, 0 deletions
diff --git a/patches/45_optionals.patch b/patches/45_optionals.patch
new file mode 100644
index 0000000..c945b5a
--- /dev/null
+++ b/patches/45_optionals.patch
@@ -0,0 +1,4 @@
+32c32
+< var answer: u8 = result;
+---
+> var answer: u8 = result orelse 42;
diff --git a/patches/README.md b/patches/README.md
new file mode 100644
index 0000000..09fecbd
--- /dev/null
+++ b/patches/README.md
@@ -0,0 +1,9 @@
+# The ziglings/patches Directory
+
+This is how ziglings is tested.
+
+The patches fix the broken exercises so that they work again.
+
+No peeking! :-)
+
+(Further tooling and explanation goes here.)