From: Rob Pike Date: Thu, 8 May 2008 00:34:51 +0000 (-0700) Subject: use new conversion syntax to simplify test X-Git-Tag: weekly.2009-11-06~3781 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7fbe486b1a84207b4c75664257ad538384e280d8;p=gostls13.git use new conversion syntax to simplify test SVN=118019 --- diff --git a/src/lib/container/vector.go b/src/lib/container/vector.go index 7081bd3a95..d6de66ef57 100644 --- a/src/lib/container/vector.go +++ b/src/lib/container/vector.go @@ -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"; } }