Any particular reason you didn't use a ranged for-loop here? It's fine as-is, just curious.