Skip to content

Commit 7ebfb3b

Browse files
dinaltalIguazDina Nimrodi
authored
fix var chunk clear (#478) (#479)
* fix var chunk clear (#478) * remove test Co-authored-by: Tal Neiman <[email protected]> Co-authored-by: Dina Nimrodi <[email protected]>
1 parent 49ec731 commit 7ebfb3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/chunkenc/vartype.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (c *VarChunk) Bytes() []byte {
7777
}
7878

7979
func (c *VarChunk) Clear() {
80-
c.b = c.b[0:]
80+
c.b = c.b[:0]
8181
}
8282

8383
// Appender implements the Chunk interface.

0 commit comments

Comments
 (0)