Skip to content

Commit a42359b

Browse files
authored
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
1 parent 596c33f commit a42359b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var resp struct {
3737
}
3838
}
3939
client.Query(ctx, query, &resp, variables)
40-
fmt.Println(query.Me.Name)
40+
fmt.Println(resp.Me.Name)
4141
// Output: Luke Skywalker
4242
```
4343

0 commit comments

Comments
 (0)