Align "endIndex"'s value to its name in enumeration-for