Is there an off-by-one error in this example code?

Printable View