Unverified Commit 624f59ea authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #2826 from justanotheranonymoususer/patch-1

Consistency with `using` in README.md
parents 18a5f4c7 e970f310
...@@ -870,7 +870,7 @@ assert(p == p2); ...@@ -870,7 +870,7 @@ assert(p == p2);
To make this work with one of your types, you only need to provide two functions: To make this work with one of your types, you only need to provide two functions:
```cpp ```cpp
using nlohmann::json; using json = nlohmann::json;
namespace ns { namespace ns {
void to_json(json& j, const person& p) { void to_json(json& j, const person& p) {
......
...@@ -54,7 +54,7 @@ assert(p == p2); ...@@ -54,7 +54,7 @@ assert(p == p2);
To make this work with one of your types, you only need to provide two functions: To make this work with one of your types, you only need to provide two functions:
```cpp ```cpp
using nlohmann::json; using json = nlohmann::json;
namespace ns { namespace ns {
void to_json(json& j, const person& p) { void to_json(json& j, const person& p) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment