Skip to content

Commit 155c46b

Browse files
authored
remove redundant capacity
1 parent dc5ca50 commit 155c46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buffer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ func TestPartitionAt2(t *testing.T) {
892892
// TestPartitionAt3 tests ability to overwrite buffer previously written.
893893
func TestPartitionAt3(t *testing.T) {
894894
buf := NewPartitionAt(NewMemPoolAt(5))
895-
buf.Write(make([]byte, 15, 15)) // allocates 3 membuffers
895+
buf.Write(make([]byte, 15)) // allocates 3 membuffers
896896
buf.WriteAt([]byte("hey"), 0)
897897
data := make([]byte, 10)
898898
data = data[:3]

0 commit comments

Comments
 (0)