Skip to content

Commit

Permalink
📝 fixed documentation #745
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Sep 30, 2017
1 parent b05ea3d commit 1a66527
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/examples/operator_deserialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int main()

// create JSON value and read the serialization from the stream
json j;
j << ss;
ss >> j;

// serialize JSON
std::cout << std::setw(2) << j << '\n';
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/operator_deserialize.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="https://wandbox.org/permlink/doaPmtdJ277jNm9C"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/atomVJKVgMTIh1iT"><b>online</b></a>
2 changes: 2 additions & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12818,6 +12818,7 @@ class basic_json
future version of the library. Please use
@ref operator<<(std::ostream&, const basic_json&)
instead; that is, replace calls like `j >> o;` with `o << j;`.
@since version 1.0.0; deprecated since version 3.0.0
*/
JSON_DEPRECATED
friend std::ostream& operator>>(const basic_json& j, std::ostream& o)
Expand Down Expand Up @@ -13001,6 +13002,7 @@ class basic_json
future version of the library. Please use
@ref operator>>(std::istream&, basic_json&)
instead; that is, replace calls like `j << i;` with `i >> j;`.
@since version 1.0.0; deprecated since version 3.0.0
*/
JSON_DEPRECATED
friend std::istream& operator<<(basic_json& j, std::istream& i)
Expand Down

0 comments on commit 1a66527

Please sign in to comment.