From 6849809e4ce4c34a88d792d8441b81d48c83cd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lovro=20Ma=C5=BEgon?= Date: Sun, 30 Jun 2024 18:36:05 +0200 Subject: [PATCH] fix example in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index acbc711..e395557 100644 --- a/README.md +++ b/README.md @@ -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)