- updated printing of chan types
R=r
OCL=15448
CL=15448
diff --git a/usr/gri/gosrc/printer.go b/usr/gri/gosrc/printer.go
index bcd7edb..d0c5a08 100755
--- a/usr/gri/gosrc/printer.go
+++ b/usr/gri/gosrc/printer.go
@@ -238,14 +238,12 @@
P.PrintType(typ.elt);
case Type.CHANNEL:
- print("chan");
switch typ.flags {
- case Type.SEND: print(" -<");
- case Type.RECV: print(" <-");
- case Type.SEND + Type.RECV: // nothing to print
+ case Type.SEND: print("chan <- ");
+ case Type.RECV: print("<- chan ");
+ case Type.SEND + Type.RECV: print("chan ");
default: panic("UNREACHABLE");
}
- print(" ");
P.PrintType(typ.elt);
case Type.FUNCTION: