mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
11 lines
425 B
Diff
11 lines
425 B
Diff
--- exercises/081_anonymous_structs2.zig 2023-10-03 22:15:22.125574535 +0200
|
|
+++ answers/081_anonymous_structs2.zig 2023-10-05 20:04:07.209436419 +0200
|
|
@@ -38,7 +38,7 @@
|
|
|
|
// Please complete this function which prints an anonymous struct
|
|
// representing a circle.
|
|
-fn printCircle(???) void {
|
|
+fn printCircle(circle: anytype) void {
|
|
print("x:{} y:{} radius:{}\n", .{
|
|
circle.center_x,
|
|
circle.center_y,
|