Skip to content

Commit 27936dd

Browse files
authored
Update deprecated syntax in README (#129)
1 parent 4235610 commit 27936dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ x = mxarray(Dict("a"=>1, "b"=>"string", "c"=>[1,2,3])) # converts a Julia dictio
8888

8989
The function ``mxarray`` can also convert a compound type to a Julia struct:
9090
```julia
91-
type S
92-
x::Float64
93-
y::Vector{Int32}
94-
z::Bool
91+
struct S
92+
x::Float64
93+
y::Vector{Int32}
94+
z::Bool
9595
end
9696

9797
s = S(1.2, Int32[1, 2], false)

0 commit comments

Comments
 (0)