diff --git a/readme.md b/readme.md index 69e1840..2c2479b 100644 --- a/readme.md +++ b/readme.md @@ -5,7 +5,7 @@ Unsatisfied with the INI parsing tools provided by third-parties in the Golang e ```go var parser = ini.NewParser(reader) -for entry := parser.Parse(); parser.IsEnd(); entry = parser.Parse() { +for entry := parser.Parse(); !(parser.IsEnd()); entry = parser.Parse() { var myValue = myValueMap[entry.Section] switch entry.Key {