bugfix adding points

This commit is contained in:
Janis 2022-12-17 17:15:15 +01:00
parent fd9dfc613a
commit 525ca55a22

View file

@ -30,7 +30,7 @@ const Point = struct {
fn add(self: *Self, other: Self) void { fn add(self: *Self, other: Self) void {
self.x += other.x; self.x += other.x;
self.y += other.x; self.y += other.y;
} }
fn added(self: *const Self, other: Self) Self { fn added(self: *const Self, other: Self) Self {