Skip to content

Commit 20f96fc

Browse files
committed
Remove documentation of second argument
1 parent 754cbf3 commit 20f96fc

File tree

1 file changed

+2
-5
lines changed
  • lib/node_modules/@stdlib/math/special/abs/lib

1 file changed

+2
-5
lines changed

lib/node_modules/@stdlib/math/special/abs/lib/main.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ var gabs = require( '@stdlib/math/strided/special/abs' );
4343
* Computes the absolute value.
4444
*
4545
* @param {(ndarray|ArrayLikeObject|number)} x - input value
46-
* @param {(ndarray|ArrayLikeObject)} [mask] - array mask
47-
* @throws {TypeError} first argument must be either an ndarray, array-like object, or number
48-
* @throws {TypeError} second argument must be either an ndarray or array-like object
49-
* @throws {Error} second argument must have the same shape as the first argument
46+
* @throws {TypeError} must provide either an ndarray, array-like object, or number
5047
* @returns {(ndarray|number)} results
5148
*
5249
* @example
@@ -154,7 +151,7 @@ function abs( x ) {
154151
return y;
155152
}
156153
if ( !isArrayLikeObject( x ) ) {
157-
throw new TypeError( 'invalid argument. First argument must be either a number, array-like object, or ndarray. Value: `' + x + '`.' );
154+
throw new TypeError( 'invalid argument. Must provide either an ndarray, array-like object, or number. Value: `' + x + '`.' );
158155
}
159156
N = x.length;
160157
dt = dtype( x ) || 'generic';

0 commit comments

Comments
 (0)