e6e0e2cc90b74fbe1e9da283cc1e887d6c553d53
lines_read was incorrectly set to max_lines.min(total) (the loop upper bound) instead of the actual number of successfully read lines. Now tracks lines_read via get_line(i).is_some() counter and uses max_lines.min(total) as the correct loop upper bound to handle empty file edge case. Fixes #43
Description
No description provided
Languages
Rust
100%