aboutsummaryrefslogtreecommitdiff
path: root/src/lib/reflect
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-11-03 15:57:12 -0800
committerRob Pike <r@golang.org>2008-11-03 15:57:12 -0800
commit1ff61cefaa6fc207ef40c4c283c7f0b420a38d44 (patch)
tree65ca07dff3860555354995925b1fcbc0319d70f7 /src/lib/reflect
parent56a7895386c0458247461a06f19dfdf47d1263d0 (diff)
downloadgo-1ff61cefaa6fc207ef40c4c283c7f0b420a38d44.tar.xz
move DotDotDot into next case - hit submit too fast last time.
R=rsc DELTA=5 (1 added, 2 deleted, 2 changed) OCL=18395 CL=18398
Diffstat (limited to 'src/lib/reflect')
-rw-r--r--src/lib/reflect/tostring.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/reflect/tostring.go b/src/lib/reflect/tostring.go
index e5c4588d83..2359b8cd36 100644
--- a/src/lib/reflect/tostring.go
+++ b/src/lib/reflect/tostring.go
@@ -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);