Skip to content

Commit

Permalink
Merge branch 'master' into feat/items-support
Browse files Browse the repository at this point in the history
  • Loading branch information
krak3n committed Nov 23, 2022
2 parents f88e0c3 + c3362bf commit 6460088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewDoubleArray(seqs [][]string) *DoubleArray {
func registerTokens(da *DoubleArray, seqs [][]string) [][]int {
var result [][]int
for _, seq := range seqs {
var encoded []int
encoded := make([]int, 0, len(seq))
for _, token := range seq {
if _, ok := da.Encoding[token]; !ok {
da.Encoding[token] = len(da.Encoding)
Expand Down

0 comments on commit 6460088

Please sign in to comment.