diff --git a/main.zig b/main.zig index ad2a448..c9492e8 100644 --- a/main.zig +++ b/main.zig @@ -30,7 +30,7 @@ const Point = struct { fn add(self: *Self, other: Self) void { self.x += other.x; - self.y += other.x; + self.y += other.y; } fn added(self: *const Self, other: Self) Self {