Commit 4ba177ae authored by Russ Cox's avatar Russ Cox

gc: print x[y:] correctly

R=ken2
CC=golang-dev
https://golang.org/cl/955041
parent 20c50cf0
......@@ -297,7 +297,8 @@ exprfmt(Fmt *f, Node *n, int prec)
fmtprint(f, "[");
exprfmt(f, n->right->left, 0);
fmtprint(f, ":");
exprfmt(f, n->right->right, 0);
if(n->right->right != N)
exprfmt(f, n->right->right, 0);
fmtprint(f, "]");
break;
......
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