diff --git a/index/upside_down/row.go b/index/upside_down/row.go index e6663bf4..f3f79d5a 100644 --- a/index/upside_down/row.go +++ b/index/upside_down/row.go @@ -321,7 +321,7 @@ func NewDictionaryRowK(key []byte) (*DictionaryRow, error) { } func (dr *DictionaryRow) parseDictionaryV(value []byte) error { - buf := bytes.NewBuffer((value)) + buf := bytes.NewBuffer(value) count, err := binary.ReadUvarint(buf) if err != nil { diff --git a/mapping_test.go b/mapping_test.go index 9cb34065..089ecc78 100644 --- a/mapping_test.go +++ b/mapping_test.go @@ -399,6 +399,6 @@ func TestMappingBool(t *testing.T) { t.Errorf("expected to find pointer to bool field named 'pprop'") } if count != 2 { - t.Errorf("expected to find 1 find, found %d", count) + t.Errorf("expected to find 2 fields, found %d", count) } }