Skip to content

Commit

Permalink
Merge pull request #129 from dariomt/master
Browse files Browse the repository at this point in the history
fixed typos in comments for examples
  • Loading branch information
nlohmann committed Oct 3, 2015
2 parents 0a81353 + 2607458 commit 99261bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/examples/get__PointerType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace nlohmann;

int main()
{
// create a JSON boolean
// create a JSON number
json value = 17;

// explicitly getting pointers
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/get_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace nlohmann;

int main()
{
// create a JSON boolean
// create a JSON number
json value = 17;

// explicitly getting pointers
Expand Down
4 changes: 2 additions & 2 deletions doc/examples/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ using namespace nlohmann;

int main()
{
// create JSON arrays
// create JSON objects
json j_no_init_list = json::object();
json j_empty_init_list = json::object({});
json j_list_of_pairs = json::object({ {"one", 1}, {"two", 2} });
//json j_invalid_list = json::object({ "one", 1 }); // would throw

// serialize the JSON arrays
// serialize the JSON objects
std::cout << j_no_init_list << '\n';
std::cout << j_empty_init_list << '\n';
std::cout << j_list_of_pairs << '\n';
Expand Down

0 comments on commit 99261bf

Please sign in to comment.