Fix examples/json_lines.cpp
The extra newline throws an exception.
This commit is contained in:
parent
344ced4012
commit
c10d610054
@ -11,8 +11,7 @@ int main()
|
||||
input << R"({"name": "Gilbert", "wins": [["straight", "7♣"], ["one pair", "10♥"]]}
|
||||
{"name": "Alexa", "wins": [["two pair", "4♠"], ["two pair", "9♠"]]}
|
||||
{"name": "May", "wins": []}
|
||||
{"name": "Deloise", "wins": [["three of a kind", "5♣"]]}
|
||||
)";
|
||||
{"name": "Deloise", "wins": [["three of a kind", "5♣"]]})";
|
||||
|
||||
std::string line;
|
||||
while (std::getline(input, line))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user