nit: `i < ent`