Glossary: Data Structures and Algorithms in Rust
Off-by-one error
Also written: off-by-one errors
A mistake of exactly one in an index or comparison, such as using while low < high instead of <=, or low = middle instead of middle + 1, in binary search.