Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PallHaraldsson authored Nov 11, 2024
1 parent 820cb59 commit a5aa145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The package was largely inspired by the `Columns` type in [IndexedTables](https:

## Collection and initialization

One can create a `StructArray` by providing the `struct` type and a `tuple` or `NamedTuple` of field arrays:
One can create a `StructArray` by providing the `struct` type and a `Tuple` or `NamedTuple` of field arrays:
```@repl intro
using StructArrays
struct Foo{T}
Expand All @@ -25,7 +25,7 @@ You can also initialize a `StructArray` by passing in a `NamedTuple`, in which c
x = Array{Foo}((b = adata, a = bdata)) # initialize a with bdata and vice versa
```

If a `struct` is not specified, a `StructArray` with `tuple `or `NamedTuple` elements will be created:
If a `struct` is not specified, a `StructArray` with `Tuple `or `NamedTuple` elements will be created:
```@repl intro
x = StructArray((adata, bdata))
x = StructArray((a = adata, b = bdata))
Expand Down

0 comments on commit a5aa145

Please sign in to comment.