mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
use new conversion syntax to simplify test
SVN=118019
This commit is contained in:
parent
37b8eb4648
commit
7fbe486b1a
|
@ -121,9 +121,7 @@ func Test() {
|
|||
v.Insert(0, i1);
|
||||
v.Insert(0, i0);
|
||||
for i := 0; i < v.Len(); i++ {
|
||||
var x *I;
|
||||
x = v.At(i);
|
||||
print i, " ", x.val, "\n";
|
||||
print i, " ", v.At(i).(*I).val, "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue