mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-26 17:36:29 +00:00
7679f93f68
This is checked from compiler version 0.12.0-dev.1664
18 lines
552 B
Diff
18 lines
552 B
Diff
--- exercises/080_anonymous_structs.zig 2023-11-21 14:52:54.312749682 +0100
|
|
+++ answers/080_anonymous_structs.zig 2023-11-21 14:52:43.909225238 +0100
|
|
@@ -48,13 +48,13 @@
|
|
// * circle1 should hold i32 integers
|
|
// * circle2 should hold f32 floats
|
|
//
|
|
- const circle1 = ??? {
|
|
+ const circle1 = Circle(i32){
|
|
.center_x = 25,
|
|
.center_y = 70,
|
|
.radius = 15,
|
|
};
|
|
|
|
- const circle2 = ??? {
|
|
+ const circle2 = Circle(f32){
|
|
.center_x = 25.234,
|
|
.center_y = 70.999,
|
|
.radius = 15.714,
|