]> Cypherpunks repositories - gostls13.git/commitdiff
move DotDotDot into next case - hit submit too fast last time.
authorRob Pike <r@golang.org>
Mon, 3 Nov 2008 23:57:12 +0000 (15:57 -0800)
committerRob Pike <r@golang.org>
Mon, 3 Nov 2008 23:57:12 +0000 (15:57 -0800)
R=rsc
DELTA=5  (1 added, 2 deleted, 2 changed)
OCL=18395
CL=18398

src/lib/reflect/tostring.go

index e5c4588d83b554c00d45eab43959a90d9d3d3e91..2359b8cd36cfc7f47776c7206d5a74328782a20b 100644 (file)
@@ -67,12 +67,11 @@ func TypeToString(typ Type, expand bool) string {
        switch(typ.Kind()) {
        case MissingKind:
                return "$missing$";
-       case DotDotDotKind:
-               return "...";
        case IntKind, Int8Kind, Int16Kind, Int32Kind, Int64Kind,
             UintKind, Uint8Kind, Uint16Kind, Uint32Kind, Uint64Kind,
-            FloatKind, Float32Kind, Float64Kind, Float80Kind:
-            StringKind:
+            FloatKind, Float32Kind, Float64Kind, Float80Kind,
+            StringKind,
+            DotDotDotKind:
                return typ.Name();
        case PtrKind:
                p := typ.(PtrType);