off-by-one error
noun
- Counting one too many or one too few, usually at the start or end of a range. A 10-metre fence with posts every metre needs 11 posts, not 10.
In plain words
- the loop runs one too many times
- missing the last item
- the first element gets skipped
See also edge case