1
0
Fork 0

Fix silly mix{o=e}r typo in Trait

* lib/Trait.js (_validateMixin): Change docblock and error message to
    resolve typo.
master
Mike Gerwitz 2016-12-28 03:07:16 -05:00
parent 5130e41641
commit 748ceaf0bf
Signed by: mikegerwitz
GPG Key ID: 8C917B7F5DC51BA2
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ Trait.extend = function( /* ... */ )
* into something of type S; a `TypeError` will be thrown if this contract * into something of type S; a `TypeError` will be thrown if this contract
* is violated. * is violated.
* *
* @param {Class} base mixor (target of mixin) * @param {Class} base mixer (target of mixin)
* @param {Trait} T mixee (trait being mixed in) * @param {Trait} T mixee (trait being mixed in)
* *
* @return {undefined} * @return {undefined}
@ -272,7 +272,7 @@ function _validateMixin( base, T )
{ {
throw TypeError( throw TypeError(
"Cannot mix trait " + T.toString() + " into " + base.toString() + "Cannot mix trait " + T.toString() + " into " + base.toString() +
"; mixor must be of type " + T.__extbase.toString() "; mixer must be of type " + T.__extbase.toString()
); );
} }
} }