Rename type parameter to increase clarity

This commit is contained in:
Hanno Braun 2024-12-17 20:37:35 +01:00
parent 71a0bb7a33
commit b9fe448670

View File

@ -20,13 +20,13 @@ where
}
}
impl<T, const D: usize> ops::Add<T> for Vector<D>
impl<V, const D: usize> ops::Add<V> for Vector<D>
where
T: Into<Vector<D>>,
V: Into<Vector<D>>,
{
type Output = Self;
fn add(self, other: T) -> Self::Output {
fn add(self, other: V) -> Self::Output {
let other = other.into();
let components = self