DictionaryAI

off-by-one error

Short definition from Wiktionary

Noun

  1. 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.

We haven’t written up off-by-one error yet: Simple and Standard meanings, examples and a quiz.