081_anonymous_structs2.patch 425 B

1234567891011
  1. --- exercises/081_anonymous_structs2.zig 2023-10-03 22:15:22.125574535 +0200
  2. +++ answers/081_anonymous_structs2.zig 2023-10-05 20:04:07.209436419 +0200
  3. @@ -38,7 +38,7 @@
  4. // Please complete this function which prints an anonymous struct
  5. // representing a circle.
  6. -fn printCircle(???) void {
  7. +fn printCircle(circle: anytype) void {
  8. print("x:{} y:{} radius:{}\n", .{
  9. circle.center_x,
  10. circle.center_y,