diff --git a/Project.toml b/Project.toml index 94755ff..3ef663b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,4 +1,4 @@ name = "ToStruct" uuid = "43ec2cc1-0e50-5406-a854-b7ff8fdb8dad" authors = ["Shotaro Tanaka"] -version = "0.1.1" +version = "0.2.0" diff --git a/README.md b/README.md index df15f06..09eca72 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ struct Bar foo::Foo end -raw = Dict("foo" => Dict("i" => 1, "s" => "hello")) -ToStruct.tostruct(raws, Bar) -Bar(Foo(1, "hello")) +x = Dict("foo" => Dict("i" => 1, "s" => "hello")) +ToStruct.tostruct(Bar, x) == Bar(Foo(1, "hello")) # true ```