summaryrefslogtreecommitdiff
path: root/src/lib/container/vector.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-07-08 14:20:04 -0700
committerRob Pike <r@golang.org>2008-07-08 14:20:04 -0700
commit7aa5573dfd202c17d7b82fa81f2f3706a3e80f85 (patch)
tree06900de187a1fad60cf1d3d5c19ae04dd3573871 /src/lib/container/vector.go
parent317756ffc773b42be493079a66cbe1e3694521e6 (diff)
downloadgolang-7aa5573dfd202c17d7b82fa81f2f3706a3e80f85.tar.gz
disambiguate typedefs in export blocks of .6 files
SVN=126366
Diffstat (limited to 'src/lib/container/vector.go')
-rw-r--r--src/lib/container/vector.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/container/vector.go b/src/lib/container/vector.go
index d6de66ef5..d0d75bd04 100644
--- a/src/lib/container/vector.go
+++ b/src/lib/container/vector.go
@@ -63,8 +63,8 @@ func (v *Vector) Len() int {
func (v *Vector) At(i int) Element {
if i < 0 || i >= v.nelem {
- //return nil; // BUG
- panic "At out of range\n";
+ panic "Vector.At(", i, ") out of range (size ", v.nelem, ")\n";
+ return nil;
}
return v.elem[i];
}