aboutsummaryrefslogtreecommitdiff
path: root/src/pds.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pds.go')
-rw-r--r--src/pds.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pds.go b/src/pds.go
index b853530..9d14648 100644
--- a/src/pds.go
+++ b/src/pds.go
@@ -48,8 +48,12 @@ import (
"reflect"
"sort"
"strings"
+
+ gt "gotext"
)
+
+
// Vector is a dense, ordered, indexed collections. They are analogous to slices
// in Go. They can be updated by appending to the end of the vector, prepending
// values to the beginning of the vector, or updating existing indexes in the
@@ -101,7 +105,9 @@ func (l *Vector[T]) cap() int {
func (l *Vector[T]) Get(index int) T {
if index < 0 || index >= l.size {
panic(fmt.Sprintf(
- "immutable.Vector.Get: index %d out of bounds",
+ gt.Gettext(
+ "immutable.Vector.Get: index %d out of bounds",
+ ),
index,
))
}