Skip to content

Commit

Permalink
🔀 merge pull request #430 from vjon/patch-1
Browse files Browse the repository at this point in the history
Fix documentation error
  • Loading branch information
nlohmann authored Jan 19, 2017
2 parents bae8e70 + 046f6da commit e951d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ const std::string tmp = j[0];
j[1] = 42;
bool foo = j.at(2);
// comparison
j == "[\"foo\", 1, true]"_json; // true
// other stuff
j.size(); // 3 entries
j.empty(); // false
Expand All @@ -277,9 +280,6 @@ j.is_object();
j.is_array();
j.is_string();
// comparison
j == "[\"foo\", 1, true]"_json; // true
// create an object
json o;
o["foo"] = 23;
Expand Down

0 comments on commit e951d19

Please sign in to comment.