Use capitalised Self type

This commit is contained in:
Brendan Zabarauskas 2013-02-07 08:28:48 +11:00
parent fdff434325
commit c0fb48f861
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ pub use mat4::{Mat4, mat4, dmat4};
* floating point type and have the same number of dimensions as the * floating point type and have the same number of dimensions as the
* number of rows and columns in the matrix. * number of rows and columns in the matrix.
*/ */
pub trait Matrix<T,V>: Index<uint, V> Eq Neg<self> { pub trait Matrix<T,V>: Index<uint, V> Eq Neg<Self> {
/** /**
* # Return value * # Return value
* *

View file

@ -67,7 +67,7 @@ pub trait Vector4<T>: Vector<T> {
/** /**
* A vector with numeric components * A vector with numeric components
*/ */
pub trait NumericVector<T>: Vector<T> Neg<self> { pub trait NumericVector<T>: Vector<T> Neg<Self> {
/** /**
* The standard basis vector * The standard basis vector
* *