go-xmldom
go-xmldom copied to clipboard
Array access with negative index
In go-xmldom/node.go (master branch), function PrevSibling(), there's:
if i >= 0 {
return n.Parent.Children[i-1]
}
The >= should probably be >.