From 642750dc538e896d5e43c9887e5a782a070e703b Mon Sep 17 00:00:00 2001 From: ado Date: Mon, 28 Mar 2022 19:50:29 +0200 Subject: [PATCH] fix README typos --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7d50949..e645b52 100644 --- a/README.md +++ b/README.md @@ -185,12 +185,13 @@ The fields with which the parser works with can be modified at any given time. T ss::parser p{"students.csv", ","}; p.use_fields("Name", "Grade"); - const auto& [name, grade] : p.get_next(); + const auto& [name, grade] = p.get_next(); std::cout << name << ' ' << grade << std::endl; - if(p.field_exists("Age")) { - p.use_fields("Grade", "Name", "Age") - for(const auto& [grade, name, age] : p.iterate()) { + if (p.field_exists("Age")) { + p.use_fields("Grade", "Name", "Age"); + for (const auto& [grade, name, age] : + p.iterate()) { std::cout << grade << ' ' << name << ' ' << age << std::endl; } }