Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ x = StructArray{Foo}((adata, bdata))
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:

```@repl intro
x = Array{Foo}((b = adata, a = bdata)) # initialize a with bdata and vice versa
x = StructArray{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:
Expand Down
Loading