add final *Matcher* overloads

This commit is contained in:
Martin Angers
2014-11-07 12:19:01 -05:00
parent ef025592df
commit fb2312a925
4 changed files with 64 additions and 19 deletions

View File

@@ -36,7 +36,7 @@ func (s *Selection) Eq(index int) *Selection {
// Slice reduces the set of matched elements to a subset specified by a range
// of indices.
func (s *Selection) Slice(start int, end int) *Selection {
func (s *Selection) Slice(start, end int) *Selection {
if start < 0 {
start += len(s.Nodes)
}