Commit 1ff61cef authored by Rob Pike's avatar Rob Pike

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
parent 56a78953
...@@ -67,12 +67,11 @@ func TypeToString(typ Type, expand bool) string { ...@@ -67,12 +67,11 @@ func TypeToString(typ Type, expand bool) string {
switch(typ.Kind()) { switch(typ.Kind()) {
case MissingKind: case MissingKind:
return "$missing$"; return "$missing$";
case DotDotDotKind:
return "...";
case IntKind, Int8Kind, Int16Kind, Int32Kind, Int64Kind, case IntKind, Int8Kind, Int16Kind, Int32Kind, Int64Kind,
UintKind, Uint8Kind, Uint16Kind, Uint32Kind, Uint64Kind, UintKind, Uint8Kind, Uint16Kind, Uint32Kind, Uint64Kind,
FloatKind, Float32Kind, Float64Kind, Float80Kind: FloatKind, Float32Kind, Float64Kind, Float80Kind,
StringKind: StringKind,
DotDotDotKind:
return typ.Name(); return typ.Name();
case PtrKind: case PtrKind:
p := typ.(PtrType); p := typ.(PtrType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment