From 95bdff5bfdf3c4300b844e14251cd3dcfcd76ef8 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 28 Feb 2021 18:36:38 -0500 Subject: Add ex 50 'no values' (help further address #25) --- patches/patches/50_no_value.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/patches/50_no_value.patch (limited to 'patches') diff --git a/patches/patches/50_no_value.patch b/patches/patches/50_no_value.patch new file mode 100644 index 0000000..79db0a3 --- /dev/null +++ b/patches/patches/50_no_value.patch @@ -0,0 +1,14 @@ +68c68 +< var first_line1: *const [16]u8 = ???; +--- +> var first_line1: *const [16]u8 = undefined; +71c71 +< var first_line2: Err!*const [21]u8 = ???; +--- +> var first_line2: Err!*const [21]u8 = Err.Cthulhu; +79,80c79,80 +< fn printSecondLine() ??? { +< var second_line2: ?*const [18]u8 = ???; +--- +> fn printSecondLine() void { +> var second_line2: ?*const [18]u8 = null; -- cgit v1.2.3-ZIG