bugfix adding points
This commit is contained in:
parent
fd9dfc613a
commit
525ca55a22
2
main.zig
2
main.zig
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue