JargonFile/original/html/O/off-by-one-error.html
2014-03-27 18:54:56 +00:00

8 lines
2.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>off-by-one error</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../O.html" title="O"/><link rel="previous" href="off-the-trolley.html" title="off the trolley"/><link rel="next" href="offline.html" title="offline"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">off-by-one error</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="off-the-trolley.html">Prev</a> </td><th width="60%" align="center">O</th><td width="20%" align="right"> <a accesskey="n" href="offline.html">Next</a></td></tr></table><hr/></div><dt><a id="off-by-one-error"/><dt xmlns="" id="off-by-one-error"><b>off-by-one error</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">n.</span></dt></dt><dd><p> [common] Exceedingly common error induced in many ways, such as by
starting at 0 when you should have started at 1 or vice-versa, or by
writing <b class="command">&lt; N</b> instead of <b class="command">&lt;= N</b> or vice-versa. Also applied to giving
something to the person next to the one who should have gotten it. Often
confounded with <a href="../F/fencepost-error.html"><i class="glossterm">fencepost error</i></a>, which is properly a
particular subtype of it.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="off-the-trolley.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../O.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="offline.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">off the trolley </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> offline</td></tr></table></div></body></html>