From 309b7713bec1d749d5592239044aae840f8bc04f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 4 Jun 2024 16:51:40 -0700 Subject: [PATCH] Updated comment [skip ci] --- sparsevec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparsevec.go b/sparsevec.go index e78c7cc..808fe97 100644 --- a/sparsevec.go +++ b/sparsevec.go @@ -34,7 +34,7 @@ func NewSparseVector(vec []float32) SparseVector { func NewSparseVectorFromMap(elements map[int32]float32, dim int32) SparseVector { indices := make([]int32, 0, len(elements)) values := make([]float32, 0, len(elements)) - // no need to sort indices since binary format is not supported + // no need to sort since binary format is not supported for k, v := range elements { indices = append(indices, k) values = append(values, v)