aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-06-14 21:05:14 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-06-14 21:05:14 +0200
commit7f5b92dcd3643cc5edacaad875bc997a59a02ec3 (patch)
tree915e16660127715492dcae0dcec48fc8ef157746 /skate
parenteabe4b712379409288a68abe465b5d8852367d33 (diff)
downloadrefcat-7f5b92dcd3643cc5edacaad875bc997a59a02ec3.tar.gz
refcat-7f5b92dcd3643cc5edacaad875bc997a59a02ec3.zip
update docs
Diffstat (limited to 'skate')
-rw-r--r--skate/zippy.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/skate/zippy.go b/skate/zippy.go
index 5ff7c68..70d42fc 100644
--- a/skate/zippy.go
+++ b/skate/zippy.go
@@ -358,7 +358,8 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error {
// matchedRefsExtend takes a set of (unique) biblioref docs and will emit that
// set of biblioref docs (unchanged) plus raw references as biblioref, which
-// did not result in a match (determined by e.g. ref key and index).
+// did not result in a match (determined by e.g. ref key and index). XXX: We
+// may have duplicate refs as well - how to distinguish them?
func matchedRefsExtend(matched []*BiblioRef, refs []*Ref) []*BiblioRef {
s := set.New() // store key + index of matched items
for _, m := range matched {