diff options
| author | Dave Gauer <[email protected]> | 2022-08-29 20:07:48 -0400 |
|---|---|---|
| committer | Dave Gauer <[email protected]> | 2022-08-29 20:10:26 -0400 |
| commit | 1691b22c1b59c7065666a49b212df665f18792a3 (patch) | |
| tree | 104df8ebd9818e23615c9a604e691bd54c8257f2 /patches | |
| parent | 4eaef5fae41f3c15b2e45240c9a57d2c2740c5e3 (diff) | |
| download | ziglings-1691b22c1b59c7065666a49b212df665f18792a3.tar.xz ziglings-1691b22c1b59c7065666a49b212df665f18792a3.zip | |
Ex 080: Strip filename from @typeName output to address #130
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/patches/080_anonymous_structs.patch | 26 |
1 files changed, 18 insertions, 8 deletions
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, |
