Permalink
Browse files

Improve internal comments.

Use simpler examples.
  • Loading branch information...
dmitshur committed Dec 1, 2017
1 parent 442334b commit 99fe52a293e0402a2404c33873dfaf2bfaaeeb84
Showing with 2 additions and 2 deletions.
  1. +2 −2 query.go
View
@@ -63,12 +63,12 @@ func writeArgumentType(w io.Writer, t reflect.Type, value bool) {
switch t.Kind() {
case reflect.Slice, reflect.Array:
// List. E.g., "[Int!]".
// List. E.g., "[Int]".
io.WriteString(w, "[")
writeArgumentType(w, t.Elem(), true)
io.WriteString(w, "]")
default:
// Named type. E.g., "Int!".
// Named type. E.g., "Int".
name := t.Name()
if name == "string" { // HACK: Workaround for https://github.com/shurcooL/githubql/issues/12.
name = "ID"

0 comments on commit 99fe52a

Please sign in to comment.