From 1305e0355795e41521a1de9b3137b7c0ff4ea01e Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 26 Jan 2017 19:39:34 +0100 Subject: [PATCH] :memo: fixed documentation --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8cf4865b3..e2e36fd13 100644 --- a/README.md +++ b/README.md @@ -520,7 +520,7 @@ Likewise, when calling `get()`, the `from_json` method will be called Some important things: * Those methods **MUST** be in your type's namespace (which can be the global namespace), or the library will not be able to locate them (in this example, they are in namespace `ns`, where `person` is defined). -* When using `get()`, `your_type` **MUST** be [DefaultConstructible](http://en.cppreference.com/w/cpp/concept/DefaultConstructible). (There is a way to bypass those requirements described later.) +* When using `get()`, `your_type` **MUST** be [DefaultConstructible](http://en.cppreference.com/w/cpp/concept/DefaultConstructible). (There is a way to bypass this requirement described later.) #### How do I convert third-party types? @@ -583,8 +583,7 @@ struct move_only_type { move_only_type(const move_only_type&) = delete; move_only_type(move_only_type&&) = default; - private: - int i; + int i; }; namespace nlohmann {