mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Get implementation of AddAssign correct
This commit is contained in:
parent
0b8eda336d
commit
0099dfa688
|
@ -27,7 +27,7 @@ where
|
||||||
T: Into<Num<N>>,
|
T: Into<Num<N>>,
|
||||||
{
|
{
|
||||||
fn add_assign(&mut self, rhs: T) {
|
fn add_assign(&mut self, rhs: T) {
|
||||||
self.0 += (*self + rhs.into()).0
|
self.0 = (*self + rhs.into()).0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue