refactored: off-by-one errors in docs