Fix minor mistake in code sample in README (#253)

<!--
Thanks for your contribution! Check out the
[contributing
docs](https://github.com/Khan/genqlient/blob/main/docs/CONTRIBUTING.md)
for more on contributing to genqlient.
-->



I have:
- [x] Written a clear PR title and description (above)
- [x] Signed the [Khan Academy CLA](https://www.khanacademy.org/r/cla)
- [ ] Added tests covering my changes, if applicable
- [ ] Included a link to the issue fixed, if applicable
- [ ] Included documentation, for new features
- [ ] Added an entry to the changelog
This commit is contained in:
Omar Kohl
2023-02-14 18:10:55 +01:00
committed by GitHub
parent 596c33f0b0
commit a42359b435
+1 -1
View File
@@ -37,7 +37,7 @@ var resp struct {
}
}
client.Query(ctx, query, &resp, variables)
fmt.Println(query.Me.Name)
fmt.Println(resp.Me.Name)
// Output: Luke Skywalker
```