aboutsummaryrefslogtreecommitdiffstats
path: root/skate/zippy.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-06-19 00:01:51 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-06-19 00:01:51 +0200
commit2e16173c217c6201c226e48b38f350bfd377393e (patch)
treefec07c23b74733be39a5ef7183612da22c9c48b4 /skate/zippy.go
parentdec49fea12f7809b0ec80dca5d8d688dc1124a57 (diff)
downloadrefcat-2e16173c217c6201c226e48b38f350bfd377393e.tar.gz
refcat-2e16173c217c6201c226e48b38f350bfd377393e.zip
zippy: add test
Diffstat (limited to 'skate/zippy.go')
-rw-r--r--skate/zippy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/skate/zippy.go b/skate/zippy.go
index 0d92873..2317b56 100644
--- a/skate/zippy.go
+++ b/skate/zippy.go
@@ -452,7 +452,7 @@ func uniqueMatches(docs []string, stats *statsAugment) (result []*BiblioRef, err
}
brefs = append(brefs, &bref)
}
- // Make sure exact matches come first.
+ // Make sure exact matches come first. XXX: bug?
sort.Slice(brefs, func(i, j int) bool {
return brefs[i].MatchStatus == StatusExact.Short()
})