Fix typo in example code

This commit is contained in:
jostephd 2019-10-12 22:41:35 +00:00 committed by GitHub
parent a0ccc2dff4
commit 10b90ecd26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ public:
// Use lambdas for short functions like this.
// We also encourage the use of auto in lambdas and other places where
// type names are long and can be inferred.
std::sort(ref.being(), ref.end(), [](const auto& a, const auto& b) {
std::sort(ref.begin(), ref.end(), [](const auto& a, const auto& b) {
return a.member && !b.member;
});
}