Skip to content

Commit 40035a0

Browse files
committed
Improve pretty-printer
1 parent 4d3a140 commit 40035a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/lib/semmle/go/Types.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,11 @@ class SignatureType extends @signaturetype, CompositeType {
921921

922922
language[monotonicAggregates]
923923
override string pp() {
924-
exists(string suffix | (if this.isVariadic() then suffix = "[variadic]" else suffix = "") |
924+
exists(string suffix | (if this.isVariadic() then suffix = " [variadic]" else suffix = "") |
925925
result =
926926
"func(" + concat(int i, Type tp | tp = this.getParameterType(i) | tp.pp(), ", " order by i) +
927927
") " + concat(int i, Type tp | tp = this.getResultType(i) | tp.pp(), ", " order by i) +
928-
" " + suffix
928+
suffix
929929
)
930930
}
931931

0 commit comments

Comments
 (0)