Skip to content

Commit 4cc1830

Browse files
author
Pietro Vertechi
committed
update README and NEWS
1 parent 75a3e91 commit 4cc1830

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Breaking
66

77
- Renamed `columns` to `fieldarrays`
8+
- `StructArray{T}(args...)` has been deprecated in favor of `StructArray{T}(args::Tuple)`
89

910
### New features
1011

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ The package is largely inspired from the `Columns` type in [IndexedTables](https
1414
```julia
1515
julia> using StructArrays, Random
1616

17-
julia> srand(4);
17+
julia> Random.seed!(4);
1818

19-
julia> s = StructArray{ComplexF64}(rand(2,2), rand(2,2))
19+
julia> s = StructArray{ComplexF64}((rand(2,2), rand(2,2)))
2020
2×2 StructArray{Complex{Float64},2,NamedTuple{(:re, :im),Tuple{Array{Float64,2},Array{Float64,2}}}}:
2121
0.680079+0.625239im 0.92407+0.267358im
2222
0.874437+0.737254im 0.929336+0.804478im

0 commit comments

Comments
 (0)