Fixed some type errors

This commit is contained in:
Lewis Hemens 2014-01-12 10:48:39 +00:00
parent ad12ab5633
commit a69354b535
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ ascii.Vector.prototype.equals = function(other) {
/**
* @param {ascii.Vector} other
* @return {boolean}
* @return {ascii.Vector}
*/
ascii.Vector.prototype.subtract = function(other) {
return new ascii.Vector(this.x - other.x, this.y - other.y);
@ -31,7 +31,7 @@ ascii.Vector.prototype.subtract = function(other) {
/**
* @param {ascii.Vector} other
* @return {boolean}
* @return {ascii.Vector}
*/
ascii.Vector.prototype.add = function(other) {
return new ascii.Vector(this.x + other.x, this.y + other.y);

View File

@ -41,7 +41,7 @@ ascii.State = function() {
* Returns the cell at the given coordinates.
*
* @param {ascii.Vector} vector
* @return {asii.Cell}
* @return {ascii.Cell}
*/
ascii.State.prototype.getCell = function(vector) {
return this.cells[vector.x][vector.y];