From: Rob Pike Date: Sun, 19 Feb 2012 20:44:24 +0000 (+1100) Subject: test/initcomma.go: restore what it's supposed to be testing X-Git-Tag: weekly.2012-02-22~99 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c9b36a87eb1928f9e4fbdfff052b08b56dc1c000;p=gostls13.git test/initcomma.go: restore what it's supposed to be testing 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 --- diff --git a/test/initcomma.go b/test/initcomma.go index 7fa069044d..a54fce4280 100644 --- a/test/initcomma.go +++ b/test/initcomma.go @@ -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 {