Skip to content

Commit

Permalink
formatter: fix generated syntax on multiple interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMure authored Feb 5, 2020
1 parent 1315dba commit 50b9a69
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 50b9a69

Please sign in to comment.