Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed typos in comments for examples #129

Merged
merged 1 commit into from
Oct 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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