Skip to content

Commit 9171008

Browse files
committed
Auto-generated commit
1 parent d6085dc commit 9171008

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-11-25)
7+
## Unreleased (2025-11-30)
88

99
<section class="features">
1010

@@ -256,6 +256,7 @@ A total of 33 issues were closed in this release:
256256

257257
<details>
258258

259+
- [`985e111`](https://github.com/stdlib-js/stdlib/commit/985e1117c5836c62d3d9fca351c4815cfa099913) - **docs:** refactor example _(by Athan Reines)_
259260
- [`c520b5a`](https://github.com/stdlib-js/stdlib/commit/c520b5a0cae0c85e946f8a646e7cc8c01b3b5673) - **docs:** address TSDoc lint errors and add doctest aliases _(by Philipp Burckhardt)_
260261
- [`3f7b1ed`](https://github.com/stdlib-js/stdlib/commit/3f7b1ed405cdb77a3357d424f462e8d3b2276df5) - **docs:** fix code in TSDoc examples _(by Philipp Burckhardt)_
261262
- [`7f55434`](https://github.com/stdlib-js/stdlib/commit/7f554349e50fc601e7ab4206ba1da0eceae93518) - **docs:** fix TSDoc comments example code and return annotation values _(by Philipp Burckhardt)_

base/first/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,16 @@ var out = first( x );
7373

7474
```javascript
7575
var Complex64Array = require( '@stdlib/array/complex64' );
76-
var realf = require( '@stdlib/complex/float32/real' );
77-
var imagf = require( '@stdlib/complex/float32/imag' );
7876
var first = require( '@stdlib/array/base/first' );
7977

8078
// Create a complex number array:
8179
var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
8280

8381
// Return the first element:
8482
var out = first( arr );
85-
// returns <Complex64>
83+
// returns <Complex64>[ 1.0, 2.0 ]
8684

87-
var re = realf( out );
88-
// returns 1.0
89-
90-
var im = imagf( out );
91-
// returns 2.0
92-
93-
console.log( '%d + %di', re, im );
85+
console.log( '%s', out.toString() );
9486
// => '1 + 2i'
9587
```
9688

base/first/examples/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,14 @@
1919
'use strict';
2020

2121
var Complex64Array = require( './../../../complex64' );
22-
var realf = require( '@stdlib/complex/float32/real' );
23-
var imagf = require( '@stdlib/complex/float32/imag' );
2422
var first = require( './../lib' );
2523

2624
// Create a complex number array:
2725
var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
2826

2927
// Return the first element:
3028
var out = first( arr );
31-
// returns <Complex64>
29+
// returns <Complex64>[ 1.0, 2.0 ]
3230

33-
var re = realf( out );
34-
// returns 1.0
35-
36-
var im = imagf( out );
37-
// returns 2.0
38-
39-
console.log( '%d + %di', re, im );
31+
console.log( '%s', out.toString() );
4032
// => '1 + 2i'

0 commit comments

Comments
 (0)