Commit 7fbe486b authored by Rob Pike's avatar Rob Pike

use new conversion syntax to simplify test

SVN=118019
parent 37b8eb46
...@@ -121,9 +121,7 @@ func Test() { ...@@ -121,9 +121,7 @@ func Test() {
v.Insert(0, i1); v.Insert(0, i1);
v.Insert(0, i0); v.Insert(0, i0);
for i := 0; i < v.Len(); i++ { for i := 0; i < v.Len(); i++ {
var x *I; print i, " ", v.At(i).(*I).val, "\n";
x = v.At(i);
print i, " ", x.val, "\n";
} }
} }
......
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