Skip to content

Commit 2e5b167

Browse files
committed
Merge pull request isocpp#76 from AlexeyDmitriev/patch-2
fix typos
2 parents 09aef9b + 2801dc2 commit 2e5b167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CppCoreGuidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3453,7 +3453,7 @@ It is often a good idea to express the invariant as an `Ensure` on the construct
34533453
};
34543454

34553455
Rec r1 {"Foo",7};
3456-
Rec r2 {"Bar};
3456+
Rec r2 {"Bar"};
34573457

34583458
The `Rec2` constructor is redundant.
34593459
Also, the default for `int` would be better done as a [member initializer](#Rc-in-class initializer).
@@ -3904,7 +3904,7 @@ The common action gets tedious to write and may accidentally not be common.
39043904
{ if (!valid(i,m,y)) throw Bad_date{}; }
39053905

39063906
Date2(int ii, Month mm)
3907-
:Date2{ii,mm,current_year{}} {}
3907+
:Date2{ii,mm,current_year()} {}
39083908
// ...
39093909
};
39103910

0 commit comments

Comments
 (0)