diff --git a/README.md b/README.md index 656c5c3..20ea39e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ Lets say we have a csv file containing students in a given format '$name,$age,$g $ cat students.csv James Bailey,65,2.5 Brian S. Wolfe,40,1.9 -Nathan Fielder,37,Really good grades Bill (Heath) Gates,65,3.3 ``` ```cpp @@ -35,12 +34,10 @@ Bill (Heath) Gates,65,3.3 #include int main() { - ss::parser p{"students.csv", ","}; + ss::parser p{"students.csv", ","}; - for(const auto& [name, age, grade] : p.iterate()) { - if (p.valid()) { - std::cout << name << ' ' << age << ' ' << grade << std::endl; - } + for (auto&& [name, age, grade] : p.iterate()) { + std::cout << name << ' ' << age << ' ' << grade << std::endl; } return 0;