Skip to content

Commit 353bb0a

Browse files
committed
Auto-generated commit
1 parent aef3a93 commit 353bb0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/validate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ var isnan = require( '@stdlib/assert-is-nan' );
4444
*/
4545
function validate( a, b, c ) {
4646
if ( !isNumber( a ) || isnan( a ) ) {
47-
return new TypeError( format( 'invalid argument. First argument must be a number primitive and not `NaN`. Value: `%s`.', a ) );
47+
return new TypeError( format( 'invalid argument. First argument must be a number and not `NaN`. Value: `%s`.', a ) );
4848
}
4949
if ( !isNumber( b ) || isnan( b ) ) {
50-
return new TypeError( format( 'invalid argument. Second argument must be a number primitive and not `NaN`. Value: `%s`.', b ) );
50+
return new TypeError( format( 'invalid argument. Second argument must be a number and not `NaN`. Value: `%s`.', b ) );
5151
}
5252
if ( !isNumber( c ) || isnan( c ) ) {
53-
return new TypeError( format( 'invalid argument. Third argument must be a number primitive and not `NaN`. Value: `%s`.', c ) );
53+
return new TypeError( format( 'invalid argument. Third argument must be a number and not `NaN`. Value: `%s`.', c ) );
5454
}
5555
if ( !(a <= c && c <= b) ) {
5656
return new RangeError( format( 'invalid arguments. The condition `%s` must be satisfied. Value: `%s`.', 'a <= c <= b', '['+a+','+b+','+c+']' ) );

0 commit comments

Comments
 (0)