aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/stringable.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/stringable.go')
-rw-r--r--test/typeparam/stringable.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/typeparam/stringable.go b/test/typeparam/stringable.go
index 20da012cb8..855a1edb3b 100644
--- a/test/typeparam/stringable.go
+++ b/test/typeparam/stringable.go
@@ -38,9 +38,9 @@ func (a myint) String() string {
}
func main() {
- v := StringableList[myint]{ myint(1), myint(2) }
+ v := StringableList[myint]{myint(1), myint(2)}
if got, want := v.String(), "1, 2"; got != want {
- panic(fmt.Sprintf("got %s, want %s", got, want))
+ panic(fmt.Sprintf("got %s, want %s", got, want))
}
}