Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7fbe486b
Commit
7fbe486b
authored
May 08, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new conversion syntax to simplify test
SVN=118019
parent
37b8eb46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
vector.go
src/lib/container/vector.go
+1
-3
No files found.
src/lib/container/vector.go
View file @
7fbe486b
...
...
@@ -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";
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment