diff --git a/README.md b/README.md index 5f434e7c..8be022d5 100644 --- a/README.md +++ b/README.md @@ -283,8 +283,8 @@ json j_uset(c_uset); // only one entry for "one" is used // maybe ["two", "three", "four", "one"] std::multiset c_mset {"one", "two", "one", "four"}; -json j_mset(c_mset); // only one entry for "one" is used -// maybe ["one", "two", "four"] +json j_mset(c_mset); // both entries for "one" are used +// maybe ["one", "two", "one", "four"] std::unordered_multiset c_umset {"one", "two", "one", "four"}; json j_umset(c_umset); // both entries for "one" are used diff --git a/doc/examples/basic_json__CompatibleArrayType.cpp b/doc/examples/basic_json__CompatibleArrayType.cpp index bbbf5970..26a1a101 100644 --- a/doc/examples/basic_json__CompatibleArrayType.cpp +++ b/doc/examples/basic_json__CompatibleArrayType.cpp @@ -39,7 +39,7 @@ int main() // create an array from std::multiset std::multiset c_mset {"one", "two", "one", "four"}; - json j_mset(c_mset); // only one entry for "one" is used + json j_mset(c_mset); // both entries for "one" are used // create an array from std::unordered_multiset std::unordered_multiset c_umset {"one", "two", "one", "four"}; diff --git a/test/src/unit-readme.cpp b/test/src/unit-readme.cpp index 115048c4..81f57c00 100644 --- a/test/src/unit-readme.cpp +++ b/test/src/unit-readme.cpp @@ -208,8 +208,8 @@ TEST_CASE("README", "[hide]") // maybe ["two", "three", "four", "one"] std::multiset c_mset {"one", "two", "one", "four"}; - json j_mset(c_mset); // only one entry for "one" is used - // maybe ["one", "two", "four"] + json j_mset(c_mset); // both entries for "one" are used + // maybe ["one", "two", "one", "four"] std::unordered_multiset c_umset {"one", "two", "one", "four"}; json j_umset(c_umset); // both entries for "one" are used