Skip to content

Commit 2b4f543

Browse files
author
Willow Ahrens
committed
finishing touches on May 1 changes. Introduce complex[] and add bint
1 parent de957cf commit 2b4f543

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

spec/latest/index.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ The following strings shall be used to describe data types:
257257
:: IEEE binary64 floating point number
258258
: "bint8"
259259
:: An unsigned 8-bit integer, to be reinterpreted as a Boolean number, however
260-
that is represented in the host language. The value 0 shall map to false and the
261-
value 1 shall map to true. When parsing, implementations may choose to interpret
262-
values other than 0 or 1 as true, or throw an error.
260+
that is represented in the host language. The value 0 shall map to false and the
261+
value 1 shall map to true. When parsing, implementations may choose to interpret
262+
values other than 0 or 1 as true, or throw an error.
263263

264-
## Value Modifiers
264+
## Value Modifiers ## {#value_modifiers}
265265

266266
When the value array is meant to be reinterpreted before reading, a special bracket syntax is
267267
provided to indicate modifications to the underlying value array.
@@ -271,17 +271,17 @@ provided to indicate modifications to the underlying value array.
271271
To indicate that a value array is composed of alternating real and imaginary
272272
components of complex numbers, we wrap the type in the `complex[]` modifier. For
273273
example, a value array containing complex float64 would have a datatype of
274-
`complex[float64]` The real component of the $i$th element in the modified array
275-
shall be stored at position $2i$ in the original array, and the imaginary
276-
component of the $ith$ element in the modified array shall be at position $2i +
277-
1$ in the underlying array.
274+
`complex[float64]` The real component of the `i`th element in the modified array
275+
shall be stored at position `2i` in the original array, and the imaginary
276+
component of the `i`th element in the modified array shall be at position `2i +
277+
1` in the underlying array.
278278

279279
### Sparse Array with All Values the Same ### {#iso_arrays}
280280

281281
When all values of a sparse array are the same identical value, the type is
282282
written as `iso[<type>]`. This indicates that the array will store only a single
283283
element which is common to all stored indices. All elements in the modified
284-
array shall be stored at position $0$ of the underlying array.
284+
array shall be stored at position 0 of the underlying array.
285285

286286
<div class=example>
287287

0 commit comments

Comments
 (0)