]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test/initcomma.go: restore what it's supposed to be testing
authorRob Pike <r@golang.org>
Sun, 19 Feb 2012 20:44:24 +0000 (07:44 +1100)
committerRob Pike <r@golang.org>
Sun, 19 Feb 2012 20:44:24 +0000 (07:44 +1100)
which is trailing commas in literals. They were gofmted away at some point.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5673103

test/initcomma.go

index 7fa069044d865f552219ed7b76ae70a71a2d4574..a54fce4280236a164459681347ee274902ddd039 100644 (file)
@@ -4,12 +4,14 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Test trailing commas. DO NOT gofmt THIS FILE.
+
 package main
 
-var a = []int{1, 2}
-var b = [5]int{1, 2, 3}
-var c = []int{1}
-var d = [...]int{1, 2, 3}
+var a = []int{1, 2}
+var b = [5]int{1, 2, 3}
+var c = []int{1}
+var d = [...]int{1, 2, 3}
 
 func main() {
        if len(a) != 2 {