From acaf051e4cad70f17e48cd595f7908dfdb2914d6 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 14 Feb 2021 10:49:09 -0500 Subject: Added ex 45 optionals (And secretly added the patches/ dir. Don't tell anybody!) --- patches/45_optionals.patch | 4 ++++ patches/README.md | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 patches/45_optionals.patch create mode 100644 patches/README.md (limited to 'patches') 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.) -- cgit v1.2.3-ZIG