summaryrefslogtreecommitdiff
path: root/src/lib/container/vector.go
diff options
context:
space:
mode:
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];
}