diff options
Diffstat (limited to 'skate')
-rw-r--r-- | skate/zippy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skate/zippy.go b/skate/zippy.go index b4f2804..beae483 100644 --- a/skate/zippy.go +++ b/skate/zippy.go @@ -323,7 +323,7 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { enc = json.NewEncoder(w) keyer = makeKeyFunc("\t", 1) grouper = func(g *zipkey.Group) error { - // g.G0 contains a matched docs for a given work id, g.G1 all raw + // g.G0 contains matched docs for a given work id, g.G1 all raw // refs, with the same work id. // First, iterate over all matches and sort out duplicates, e.g. @@ -343,7 +343,7 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { } refs[i] = &ref } - matchedRefsExtend(matched, refs) + matched = matchedRefsExtend(matched, refs) for _, bref := range matched { if err := enc.Encode(bref); err != nil { return err |