diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 0e20c42..aa1f0df 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4945,7 +4945,7 @@ To avoid repetition and accidental differences. int y; public: Date(int ii, Month mm, year yy) - :i{ii}, m{mm} y{yy} + :i{ii}, m{mm}, y{yy} { if (!valid(i, m, y)) throw Bad_date{}; } Date(int ii, Month mm) @@ -4964,7 +4964,7 @@ The common action gets tedious to write and may accidentally not be common. int y; public: Date2(int ii, Month mm, year yy) - :i{ii}, m{mm} y{yy} + :i{ii}, m{mm}, y{yy} { if (!valid(i, m, y)) throw Bad_date{}; } Date2(int ii, Month mm)