diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 53c481a..87bad0c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3565,7 +3565,7 @@ The language guarantees that a `T&` refers to an object, so that testing for `nu array w; // ... public: - wheel& get_wheel(size_t i) { Expects(i < 4); return w[i]; } + wheel& get_wheel(size_t i) { Expects(i < w.size()); return w[i]; } // ... };