aboutsummaryrefslogtreecommitdiff
path: root/patches/45_optionals.patch
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
commitacaf051e4cad70f17e48cd595f7908dfdb2914d6 (patch)
treebcac00066425034a1d22183690ee507c32328cbd /patches/45_optionals.patch
parentc9739f80008dafb6754cd9864abb725dbf8b89fb (diff)
downloadziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.tar.gz
ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.tar.bz2
ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.tar.xz
ziglings-acaf051e4cad70f17e48cd595f7908dfdb2914d6.zip
Added ex 45 optionals
(And secretly added the patches/ dir. Don't tell anybody!)
Diffstat (limited to 'patches/45_optionals.patch')
-rw-r--r--patches/45_optionals.patch4
1 files changed, 4 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;