aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2022-08-29 20:07:48 -0400
committerDave Gauer <dave@ratfactor.com>2022-08-29 20:10:26 -0400
commit208aa3db7b4a8352b8c42cdcc3f7f7398029af2f (patch)
tree104df8ebd9818e23615c9a604e691bd54c8257f2 /patches
parent8da93b510340311e892a18fb8e64879161b9412a (diff)
downloadziglings-208aa3db7b4a8352b8c42cdcc3f7f7398029af2f.tar.gz
ziglings-208aa3db7b4a8352b8c42cdcc3f7f7398029af2f.tar.bz2
ziglings-208aa3db7b4a8352b8c42cdcc3f7f7398029af2f.tar.xz
ziglings-208aa3db7b4a8352b8c42cdcc3f7f7398029af2f.zip
Ex 080: Strip filename from @typeName output to address #130
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/080_anonymous_structs.patch26
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,