mirror of
https://github.com/golang/go
synced 2024-11-26 05:57:58 -07:00
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
This commit is contained in:
parent
56a7895386
commit
1ff61cefaa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user