diff --git a/src/mat.rs b/src/mat.rs index 32942a0..3169534 100644 --- a/src/mat.rs +++ b/src/mat.rs @@ -182,7 +182,7 @@ pub impl Mat2: Matrix { pub impl Mat2: Index { #[inline] - pure fn index(+i: uint) -> Vec2 { + pure fn index(i: uint) -> Vec2 { self.data[i] } } @@ -431,7 +431,7 @@ pub impl Mat3: Matrix3 { pub impl Mat3: Index { #[inline] - pure fn index(+i: uint) -> Vec3 { + pure fn index(i: uint) -> Vec3 { self.data[i] } } @@ -678,7 +678,7 @@ pub impl Mat4: Matrix4 { pub impl Mat4: Index { #[inline] - pure fn index(+i: uint) -> Vec4 { + pure fn index(i: uint) -> Vec4 { self.data[i] } } diff --git a/src/quat.rs b/src/quat.rs index 9300cbb..b73831b 100644 --- a/src/quat.rs +++ b/src/quat.rs @@ -174,7 +174,7 @@ pub impl Quat: Quaternion { pub impl Quat: Index { #[inline] - pure fn index(+i: uint) -> float { + pure fn index(i: uint) -> float { self.data[i] } } diff --git a/src/vec.rs b/src/vec.rs index 8e9ac56..c83f8ff 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -217,7 +217,7 @@ pub impl Vec2: Vector { pub impl Vec2: Index { #[inline] - pure fn index(+i: uint) -> float { + pure fn index(i: uint) -> float { self.data[i] } } @@ -411,7 +411,7 @@ pub impl Vec3: Vector { pub impl Vec3: Index { #[inline] - pure fn index(+i: uint) -> float { + pure fn index(i: uint) -> float { self.data[i] } } @@ -614,7 +614,7 @@ pub impl Vec4: Vector { pub impl Vec4: Index { #[inline] - pure fn index(+i: uint) -> float { + pure fn index(i: uint) -> float { self.data[i] } }