Skip to content

Commit 3a1bbbd

Browse files
author
Axel Wagner
committed
Correct some errors from 1da989e
1 parent 1da989e commit 3a1bbbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packbuilder.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import "C"
1313
import (
1414
"runtime"
1515
"unsafe"
16+
"io"
1617
)
1718

1819
type Packbuilder struct {
@@ -75,8 +76,8 @@ func (pb *Packbuilder) WriteToFile(name string) error {
7576
}
7677

7778
func (pb *Packbuilder) Write(w io.Writer) error {
78-
ch := pb.Foreach()
79-
for _, slice := range ch {
79+
ch := pb.ForEach()
80+
for slice := range ch {
8081
_, err := w.Write(slice)
8182
if err != nil {
8283
return err

0 commit comments

Comments
 (0)