Skip to content

Commit

Permalink
Merge pull request #115 from MichaelMure/patch-1
Browse files Browse the repository at this point in the history
formatter: fix generated syntax on multiple interfaces
  • Loading branch information
vektah authored Feb 6, 2020
2 parents 1315dba + 50b9a69 commit c07bed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatter/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (f *formatter) FormatDefinition(def *ast.Definition, extend bool) {
}

if len(def.Interfaces) != 0 {
f.WriteWord("implements").WriteWord(strings.Join(def.Interfaces, ", "))
f.WriteWord("implements").WriteWord(strings.Join(def.Interfaces, " & "))
}

f.FormatDirectiveList(def.Directives)
Expand Down

0 comments on commit c07bed4

Please sign in to comment.