go-xmldom icon indicating copy to clipboard operation
go-xmldom copied to clipboard

Array access with negative index

Open MrSplidge opened this issue 2 years ago • 0 comments

In go-xmldom/node.go (master branch), function PrevSibling(), there's:

if i >= 0 {
  return n.Parent.Children[i-1]
}

The >= should probably be >.

MrSplidge avatar Feb 24 '24 19:02 MrSplidge