Ex 080: Strip filename from @typeName output to address #130
parent
4eaef5fae4
commit
1691b22c1b
@ -1,8 +1,18 @@
|
|||||||
51c51
|
--- exercises/080_anonymous_structs.zig
|
||||||
< var circle1 = ??? {
|
+++ answers/080_anonymous_structs.zig
|
||||||
---
|
@@ -48,13 +48,13 @@
|
||||||
> var circle1 = Circle(i32) {
|
// * circle1 should hold i32 integers
|
||||||
57c57
|
// * circle2 should hold f32 floats
|
||||||
< var circle2 = ??? {
|
//
|
||||||
---
|
- var circle1 = ??? {
|
||||||
> var circle2 = Circle(f32) {
|
+ 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,
|
||||||
|
Loading…
Reference in New Issue