mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
fix typo
This commit is contained in:
@@ -3453,7 +3453,7 @@ It is often a good idea to express the invariant as an `Ensure` on the construct
|
|||||||
};
|
};
|
||||||
|
|
||||||
Rec r1 {"Foo",7};
|
Rec r1 {"Foo",7};
|
||||||
Rec r2 {"Bar};
|
Rec r2 {"Bar"};
|
||||||
|
|
||||||
The `Rec2` constructor is redundant.
|
The `Rec2` constructor is redundant.
|
||||||
Also, the default for `int` would be better done as a [member initializer](#Rc-in-class initializer).
|
Also, the default for `int` would be better done as a [member initializer](#Rc-in-class initializer).
|
||||||
|
|||||||
Reference in New Issue
Block a user