summaryrefslogtreecommitdiff
path: root/patches/patches/061_coercions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/patches/061_coercions.patch')
-rw-r--r--patches/patches/061_coercions.patch15
1 files changed, 11 insertions, 4 deletions
diff --git a/patches/patches/061_coercions.patch b/patches/patches/061_coercions.patch
index 4661154..0f13cca 100644
--- a/patches/patches/061_coercions.patch
+++ b/patches/patches/061_coercions.patch
@@ -1,4 +1,11 @@
-70c70
-< const my_letter: ??? = &letter;
----
-> const my_letter: ?*[1]u8 = &letter;
+--- exercises/061_coercions.zig 2023-10-03 22:15:22.125574535 +0200
++++ answers/061_coercions.zig 2023-10-05 20:04:07.119434735 +0200
+@@ -67,7 +67,7 @@
+ pub fn main() void {
+ var letter: u8 = 'A';
+
+- const my_letter: ??? = &letter;
++ const my_letter: ?*[1]u8 = &letter;
+ // ^^^^^^^
+ // Your type here.
+ // Must coerce from &letter (which is a *u8).