Skip to content

Commit

Permalink
fix example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Jun 30, 2024
1 parent 04f945d commit 6849809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Now you can marshal and unmarshal polymorphic JSON objects using `jsonpoly.Conta
```go
inputShape := Square{TopLeft: [2]int{1, 2}, Width: 4}

var c jsonpoly.Container[Polytope, *PolytopeJSONHelper]
var c jsonpoly.Container[Shape, *ShapeJSONHelper]
c.Value = inputShape

b, err := json.Marshal(c)
Expand Down

0 comments on commit 6849809

Please sign in to comment.