@stdlib/ndarray-base-dtype2c 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -105,11 +105,7 @@ var out = dtype2c( 'foobar' );
105
105
  ```javascript
106
106
  var dtype2c = require( '@stdlib/ndarray-base-dtype2c' );
107
107
 
108
- var dtypes;
109
- var out;
110
- var i;
111
-
112
- dtypes = [
108
+ var dtypes = [
113
109
  'float64',
114
110
  'float32',
115
111
  'int8',
@@ -124,9 +120,9 @@ dtypes = [
124
120
  'foobar'
125
121
  ];
126
122
 
123
+ var i;
127
124
  for ( i = 0; i < dtypes.length; i++ ) {
128
- out = dtype2c( dtypes[ i ] );
129
- console.log( '%s => %s', dtypes[ i ], out );
125
+ console.log( '%s => %s', dtypes[ i ], dtype2c( dtypes[ i ] ) );
130
126
  }
131
127
  ```
132
128
 
@@ -189,8 +185,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
189
185
  [npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-dtype2c.svg
190
186
  [npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-dtype2c
191
187
 
192
- [test-image]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml/badge.svg?branch=v0.2.1
193
- [test-url]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml?query=branch:v0.2.1
188
+ [test-image]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml/badge.svg?branch=v0.2.2
189
+ [test-url]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml?query=branch:v0.2.2
194
190
 
195
191
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-dtype2c/main.svg
196
192
  [coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-dtype2c?branch=main
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/ndarray-base-dtype2c",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Return the C data type associated with a provided data type value.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {