From 208aa3db7b4a8352b8c42cdcc3f7f7398029af2f Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Mon, 29 Aug 2022 20:07:48 -0400 Subject: Ex 080: Strip filename from @typeName output to address #130 --- patches/patches/080_anonymous_structs.patch | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'patches') diff --git a/patches/patches/080_anonymous_structs.patch b/patches/patches/080_anonymous_structs.patch index c9edecf..6df1890 100644 --- a/patches/patches/080_anonymous_structs.patch +++ b/patches/patches/080_anonymous_structs.patch @@ -1,8 +1,18 @@ -51c51 -< var circle1 = ??? { ---- -> var circle1 = Circle(i32) { -57c57 -< var circle2 = ??? { ---- -> var circle2 = Circle(f32) { +--- exercises/080_anonymous_structs.zig ++++ answers/080_anonymous_structs.zig +@@ -48,13 +48,13 @@ + // * circle1 should hold i32 integers + // * circle2 should hold f32 floats + // +- var circle1 = ??? { ++ var circle1 = Circle(i32){ + .center_x = 25, + .center_y = 70, + .radius = 15, + }; + +- var circle2 = ??? { ++ var circle2 = Circle(f32){ + .center_x = 25.234, + .center_y = 70.999, + .radius = 15.714, -- cgit v1.2.3-ZIG