off-by-one error
noun
- A logic error where a value, typically the number of iterations of a loop, is specified incorrectly, being either 1 less or 1 more than it should be.
Origin
Origin uncertain.
See also base rate fallacy conjunction fallacy false equivalence fencepost error
Adapted from Wiktionary (CC BY-SA 4.0).