summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-28 18:36:38 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-28 18:36:38 -0500
commit28791f0cb8df075199862b1367e3ed3ede692fd7 (patch)
tree9d23bc6cb49a6b475b1147b0dc83d3866a10aa51 /patches
parent0552a62896696804957af77a94188dbc6eec2be0 (diff)
Add ex 50 'no values' (help further address #25)
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/50_no_value.patch14
1 files changed, 14 insertions, 0 deletions
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;