Skip to content

Commit b7c2031

Browse files
committed
docs: clean-up TSDoc declaration comments
1 parent 6760298 commit b7c2031

File tree

19 files changed

+35
-40
lines changed

19 files changed

+35
-40
lines changed

lib/node_modules/@stdlib/blas/base/snrm2/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface Routine {
5454
*
5555
* var x = new Float32Array( [ 1.0, -2.0, 2.0 ] );
5656
*
57-
* var z = snrm2.ndarray( x.length, x, 1, - );
57+
* var z = snrm2.ndarray( x.length, x, 1, 0 );
5858
* // returns 3.0
5959
*/
6060
ndarray( N: number, x: Float32Array, stride: number, offset: number ): number;

lib/node_modules/@stdlib/blas/base/sspr/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface Routine {
4545
* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
4646
*
4747
* sspr( 'row-major', 'upper', 3, 1.0, x, 1, AP );
48-
* // A => <Float32Array>[ 2.0, 4.0, 6.0, 5.0, 8.0, 10.0 ]
48+
* // AP => <Float32Array>[ 2.0, 4.0, 6.0, 5.0, 8.0, 10.0 ]
4949
*/
5050
( order: Layout, uplo: MatrixTriangle, N: number, alpha: number, x: Float32Array, strideX: number, AP: Float32Array ): Float32Array;
5151

@@ -71,7 +71,7 @@ interface Routine {
7171
* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
7272
*
7373
* sspr.ndarray( 'row-major', 'upper', 3, 1.0, x, 1, 0, AP, 1, 0 );
74-
* // A => <Float32Array>[ 2.0, 4.0, 6.0, 5.0, 8.0, 10.0 ]
74+
* // AP => <Float32Array>[ 2.0, 4.0, 6.0, 5.0, 8.0, 10.0 ]
7575
*/
7676
ndarray( order: Layout, uplo: MatrixTriangle, N: number, alpha: number, x: Float32Array, strideX: number, offsetX: number, AP: Float32Array, strideAP: number, offsetAP: number ): Float32Array;
7777
}

lib/node_modules/@stdlib/iter/do-until-each/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ type Predicate = nullaryPredicate | unaryPredicate | binaryPredicate;
116116
* return v > 2;
117117
* }
118118
*
119-
* function assert( v, i ) {
120-
* if ( i > 1 ) {
121-
* throw new Error( 'unexpected error' );
119+
* function assert( v ) {
120+
* if ( v !== v ) {
121+
* throw new Error( 'should not be NaN' );
122122
* }
123123
* }
124124
*

lib/node_modules/@stdlib/iter/do-until-each/docs/types/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ function predicate( v: unknown, i: number ): boolean {
5757
*
5858
* @param v - iterated value
5959
* @param i - iteration index
60-
* @returns callback result
6160
*/
6261
function fcn( v: unknown, i: number ): void {
6362
if ( v !== v || i !== i ) {

lib/node_modules/@stdlib/iter/do-while-each/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ type Predicate = nullaryPredicate | unaryPredicate | binaryPredicate;
117117
* return v < 3;
118118
* }
119119
*
120-
* function assert( v, i ) {
121-
* if ( i > 1 ) {
122-
* throw new Error( 'unexpected error' );
120+
* function assert( v ) {
121+
* if ( v !== v ) {
122+
* throw new Error( 'should not be NaN' );
123123
* }
124124
* }
125125
*

lib/node_modules/@stdlib/iter/do-while-each/docs/types/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ function predicate( v: any, i: number ): boolean {
5757
*
5858
* @param v - iterated value
5959
* @param i - iteration index
60-
* @returns callback result
6160
*/
6261
function fcn( v: any, i: number ): any {
6362
if ( v !== v || i !== i ) {

lib/node_modules/@stdlib/iter/logspace/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface Options {
5252
* @returns iterator
5353
*
5454
* @example
55-
* var iter = iterLogspace( 0, 1000, 4 );
55+
* var iter = iterLogspace( 0, 3, 4 );
5656
*
5757
* var v = iter.next().value;
5858
* // returns 1

lib/node_modules/@stdlib/iter/strided-by/docs/types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ type Callback = Nullary | Unary | Binary | Ternary | Quaternary;
117117
* // returns 1
118118
*
119119
* r = iter.next().value;
120-
* // returns 2
120+
* // returns 3
121121
*
122122
* r = iter.next().value;
123-
* // returns 4
123+
* // returns 7
124124
*
125125
* // ...
126126
*/
@@ -161,10 +161,10 @@ declare function iterStridedBy( iterator: Iterator, fcn: Callback, offset?: numb
161161
* // returns 1
162162
*
163163
* r = iter.next().value;
164-
* // returns 2
164+
* // returns 3
165165
*
166166
* r = iter.next().value;
167-
* // returns 4
167+
* // returns 7
168168
*
169169
* // ...
170170
*/
@@ -207,7 +207,7 @@ declare function iterStridedBy( iterator: Iterator, fcn: Callback, offset?: numb
207207
* // returns 1
208208
*
209209
* r = iter.next().value;
210-
* // returns 2
210+
* // returns 3
211211
*
212212
* // ...
213213
*/

lib/node_modules/@stdlib/lapack/base/crot/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface Routine {
4141
*
4242
* @example
4343
* var Complex64Array = require( '@stdlib/array/complex64' );
44-
* var Complex64 = require( '@stdlib/complex/float32' );
44+
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
4545
* var realf = require( '@stdlib/complex/float32/real' );
4646
* var imagf = require( '@stdlib/complex/float32/imag' );
4747
*
@@ -87,7 +87,7 @@ interface Routine {
8787
*
8888
* @example
8989
* var Complex64Array = require( '@stdlib/array/complex64' );
90-
* var Complex64 = require( '@stdlib/complex/float32' );
90+
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
9191
* var realf = require( '@stdlib/complex/float32/real' );
9292
* var imagf = require( '@stdlib/complex/float32/imag' );
9393
*
@@ -132,7 +132,7 @@ interface Routine {
132132
*
133133
* @example
134134
* var Complex64Array = require( '@stdlib/array/complex64' );
135-
* var Complex64 = require( '@stdlib/complex/float32' );
135+
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
136136
* var realf = require( '@stdlib/complex/float32/real' );
137137
* var imagf = require( '@stdlib/complex/float32/imag' );
138138
*
@@ -162,7 +162,7 @@ interface Routine {
162162
*
163163
* @example
164164
* var Complex64Array = require( '@stdlib/array/complex64' );
165-
* var Complex64 = require( '@stdlib/complex/float32' );
165+
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
166166
* var realf = require( '@stdlib/complex/float32/real' );
167167
* var imagf = require( '@stdlib/complex/float32/imag' );
168168
*

lib/node_modules/@stdlib/lapack/base/zrot/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface Routine {
4141
*
4242
* @example
4343
* var Complex128Array = require( '@stdlib/array/complex128' );
44-
* var Complex128 = require( '@stdlib/complex/float64' );
44+
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
4545
* var real = require( '@stdlib/complex/float64/real' );
4646
* var imag = require( '@stdlib/complex/float64/imag' );
4747
*
@@ -87,7 +87,7 @@ interface Routine {
8787
*
8888
* @example
8989
* var Complex128Array = require( '@stdlib/array/complex128' );
90-
* var Complex128 = require( '@stdlib/complex/float64' );
90+
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
9191
* var real = require( '@stdlib/complex/float64/real' );
9292
* var imag = require( '@stdlib/complex/float64/imag' );
9393
*
@@ -132,7 +132,7 @@ interface Routine {
132132
*
133133
* @example
134134
* var Complex128Array = require( '@stdlib/array/complex128' );
135-
* var Complex128 = require( '@stdlib/complex/float64' );
135+
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
136136
* var real = require( '@stdlib/complex/float64/real' );
137137
* var imag = require( '@stdlib/complex/float64/imag' );
138138
*
@@ -162,7 +162,7 @@ interface Routine {
162162
*
163163
* @example
164164
* var Complex128Array = require( '@stdlib/array/complex128' );
165-
* var Complex128 = require( '@stdlib/complex/float64' );
165+
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
166166
* var real = require( '@stdlib/complex/float64/real' );
167167
* var imag = require( '@stdlib/complex/float64/imag' );
168168
*

0 commit comments

Comments
 (0)