@@ -26,7 +26,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
2626 maxViewBufferIndex ( [ 10 , 10 ] , [ 10 , 1 ] , 10 ) ; // $ExpectType number
2727}
2828
29- // The function does not compile if provided a first argument which is not an array-like object containing numbers...
29+ // The compiler throws an error if the function is provided a first argument which is not an array-like object containing numbers...
3030{
3131 const strides = [ 10 , 1 ] ;
3232 const offset = 10 ;
@@ -40,7 +40,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
4040 maxViewBufferIndex ( ( x : number ) : number => x , strides , offset ) ; // $ExpectError
4141}
4242
43- // The function does not compile if provided a second argument which is not an array-like object containing numbers...
43+ // The compiler throws an error if the function is provided a second argument which is not an array-like object containing numbers...
4444{
4545 const shape = [ 10 , 10 ] ;
4646 const offset = 10 ;
@@ -54,7 +54,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
5454 maxViewBufferIndex ( shape , ( x : number ) : number => x , offset ) ; // $ExpectError
5555}
5656
57- // The function does not compile if provided a third argument which is not a number...
57+ // The compiler throws an error if the function is provided a third argument which is not a number...
5858{
5959 const shape = [ 10 , 10 ] ;
6060 const strides = [ 10 , 1 ] ;
@@ -68,7 +68,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
6868 maxViewBufferIndex ( shape , strides , ( x : number ) : number => x ) ; // $ExpectError
6969}
7070
71- // The function does not compile if provided insufficient arguments...
71+ // The compiler throws an error if the function is provided insufficient arguments...
7272{
7373 maxViewBufferIndex ( ) ; // $ExpectError
7474 maxViewBufferIndex ( [ 10 , 10 ] ) ; // $ExpectError
0 commit comments