off-by-one error
English
Noun
off-by-one error (plural off-by-one errors)
- (programming) 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.
See also
- fencepost problem