off-by-one error
名词 n.
英文释义
名词 n.
-
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.
— Using an incorrect relational operator or an incorrect final value of a loop counter in the loop-continuation condition of a repetition statement causes an off-by-one error.
词形变化
0 次浏览
数据来源: Wiktionary