Skip to content

Commit

Permalink
Improve comment formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitshur committed Nov 30, 2017
1 parent 52d4a22 commit 442334b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions query.go
Expand Up @@ -51,8 +51,8 @@ func queryArguments(variables map[string]interface{}) string {
return buf.String() return buf.String()
} }


// writeArgumentType writes a minified GraphQL type for t to w. value indicates whether // writeArgumentType writes a minified GraphQL type for t to w.
// t is a value (required) type or pointer (optional) type. // value indicates whether t is a value (required) type or pointer (optional) type.
// If value is true, then "!" is written at the end of t. // If value is true, then "!" is written at the end of t.
func writeArgumentType(w io.Writer, t reflect.Type, value bool) { func writeArgumentType(w io.Writer, t reflect.Type, value bool) {
if t.Kind() == reflect.Ptr { if t.Kind() == reflect.Ptr {
Expand Down Expand Up @@ -92,8 +92,8 @@ func query(v interface{}) string {
return buf.String() return buf.String()
} }


// writeQuery writes a minified query for t to w. If inline is true, // writeQuery writes a minified query for t to w.
// the struct fields of t are inlined into parent struct. // If inline is true, the struct fields of t are inlined into parent struct.
func writeQuery(w io.Writer, t reflect.Type, inline bool) { func writeQuery(w io.Writer, t reflect.Type, inline bool) {
switch t.Kind() { switch t.Kind() {
case reflect.Ptr, reflect.Slice: case reflect.Ptr, reflect.Slice:
Expand Down

0 comments on commit 442334b

Please sign in to comment.