summaryrefslogtreecommitdiff
path: root/usr/gri/pretty/selftest1.go
diff options
context:
space:
mode:
Diffstat (limited to 'usr/gri/pretty/selftest1.go')
-rw-r--r--usr/gri/pretty/selftest1.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/gri/pretty/selftest1.go b/usr/gri/pretty/selftest1.go
index 4365df607..dff19ca53 100644
--- a/usr/gri/pretty/selftest1.go
+++ b/usr/gri/pretty/selftest1.go
@@ -26,10 +26,10 @@ func f1() {
func CompositeLiterals() {
- a1 := []int{};
- a2 := []int{0, 1, 2, };
- a3 := []int{0, 1, 2, /* ERROR single value expected */ 3 : 4, 5}; /* SYNC */
- a1 := []int{0 : 1, 2 : 3, /* ERROR key:value pair expected */ 4, }; /* SYNC */
+ a1 := []int();
+ a2 := []int(0, 1, 2, );
+ a3 := []int(0, 1, 2, /* ERROR single value expected */ 3 : 4, 5); /* SYNC */
+ a1 := []int(0 : 1, 2 : 3, /* ERROR key:value pair expected */ 4, ); /* SYNC */
}