Permalink
Browse files

Improve comment formatting.

  • Loading branch information...
dmitshur committed Nov 30, 2017
1 parent 52d4a22 commit 442334bf4f0099c0ac8ba2bbcfca144112135f40
Showing with 4 additions and 4 deletions.
  1. +4 −4 query.go
View
@@ -51,8 +51,8 @@ func queryArguments(variables map[string]interface{}) string {
return buf.String()
}
// writeArgumentType writes a minified GraphQL type for t to w. value indicates whether
// t is a value (required) type or pointer (optional) type.
// writeArgumentType writes a minified GraphQL type for t to w.
// 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.
func writeArgumentType(w io.Writer, t reflect.Type, value bool) {
if t.Kind() == reflect.Ptr {
@@ -92,8 +92,8 @@ func query(v interface{}) string {
return buf.String()
}
// writeQuery writes a minified query for t to w. If inline is true,
// the struct fields of t are inlined into parent struct.
// writeQuery writes a minified query for t to w.
// If inline is true, the struct fields of t are inlined into parent struct.
func writeQuery(w io.Writer, t reflect.Type, inline bool) {
switch t.Kind() {
case reflect.Ptr, reflect.Slice:

0 comments on commit 442334b

Please sign in to comment.