Skip to content

Commit f5b6f04

Browse files
Typo
1 parent 8fcd8d3 commit f5b6f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ adata = [1 2; 3 4]; bdata = [10 20; 30 40];
1919
x = StructArray{Foo}((adata, bdata))
2020
```
2121

22-
You can also initialze a StructArray by passing in a NamedTuple, in which case the name (rather than the order) specifies how the input arrays are assigned to fields:
22+
You can also initialize a StructArray by passing in a NamedTuple, in which case the name (rather than the order) specifies how the input arrays are assigned to fields:
2323

2424
```@repl intro
2525
x = StructArray{Foo}((b = adata, a = bdata)) # initialize a with bdata and vice versa
2626
```
2727

28-
If a struct is not specified, a StructArray with Tuple or NamedTuple elements will be created:
28+
If a `struct` is not specified, a StructArray with Tuple or NamedTuple elements will be created:
2929
```@repl intro
3030
x = StructArray((adata, bdata))
3131
x = StructArray((a = adata, b = bdata))

0 commit comments

Comments
 (0)