Skip to content

Commit

Permalink
[FIX] typos. param desc. fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jul 16, 2015
1 parent 2262480 commit 7afb9cc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/accessor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// FUNCTIONS
// MODULES //

var ERFCINV = require( './number.js' );

Expand Down
6 changes: 3 additions & 3 deletions lib/deepset.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var deepSet = require( 'utils-deep-set' ).factory,
* @param {Array} arr - input array
* @param {String} path - key path used when deep getting and setting
* @param {String} [sep] - key path separator
* @returns {Array|Null} input array or null
* @returns {Array} input array
*/
function erfcinv( x, path, sep ) {
var len = x.length,
Expand All @@ -33,9 +33,9 @@ function erfcinv( x, path, sep ) {
for ( i = 0; i < len; i++ ) {
v = dget( x[ i ] );
if ( typeof v === 'number' ) {
dset( x[i], ERFCINV( v ) );
dset( x[ i ], ERFCINV( v ) );
} else {
dset( x[i], NaN );
dset( x[ i ], NaN );
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ var ERFCINV = require( './number.js' );
* FUNCTION: erfcinv( out, matrix )
* Evaluates the inverse complementary error function for each matrix element.
*
* @param {Matrix} out - output matirx
* @param {Matrix} out - output matrix
* @param {Matrix} arr - input matrix
* @returns {Matrix} output matrix or null
* @returns {Matrix} output matrix
*/
function erfcinv( y, x ) {
var len = x.length,
Expand Down
2 changes: 1 addition & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var isObject = require( 'validate.io-object' ),
*
* @param {Object} opts - destination for validated options
* @param {Object} options - function options
* @param {Boolean} [options.copy=true] - boolean indicating if the function should return a new data structure
* @param {Boolean} [options.copy] - boolean indicating if the function should return a new data structure
* @param {Function} [options.accessor] - accessor function for accessing array values
* @param {String} [options.sep] - deep get/set key path separator
* @param {String} [options.path] - deep get/set key path
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe( 'compute-erfcinv', function tests() {
true,
undefined,
null,
// NaN, // allowed
NaN,
function(){},
{}
];
Expand Down

0 comments on commit 7afb9cc

Please sign in to comment.