diff options
Diffstat (limited to 'content/json.article')
-rw-r--r-- | content/json.article | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/json.article b/content/json.article index bedeba6..d6a1c9b 100644 --- a/content/json.article +++ b/content/json.article @@ -216,8 +216,8 @@ Let's define a Go type to contain the data from the previous example: Parents []string } - var m FamilyMember - err := json.Unmarshal(b, &m) + var m FamilyMember + err := json.Unmarshal(b, &m) Unmarshaling that data into a `FamilyMember` value works as expected, but if we look closely we can see a remarkable thing has happened. |