Skip to content

Commit

Permalink
Fix broken comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchabran committed Apr 14, 2021
1 parent 8ec0793 commit de1363d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions database/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (idx *Index) Arity() int {
return len(idx.Info.Types)
}

// Set associates a value with a key. If Unique is set to false, it is
// Set associates a list of values with a key. If Unique is set to false, it is
// possible to associate multiple keys for the same value
// but a key can be associated to only one value.
func (idx *Index) Set(vs []document.Value, k []byte) error {
Expand Down Expand Up @@ -320,8 +320,6 @@ func (idx *Index) EncodeValue(v document.Value) ([]byte, error) {
return v.MarshalBinary()
}

// in the case of one of the index keys being untyped and the corresponding
// value being an integer, convert it into a double.
var err error
var buf bytes.Buffer
err = document.NewValueEncoder(&buf).Encode(v)
Expand Down

0 comments on commit de1363d

Please sign in to comment.