diff options
Diffstat (limited to 'src/pds.go')
-rw-r--r-- | src/pds.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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, )) } |