Skip to content

Commit 9779787

Browse files
code typo in R.20 (#1619)
1 parent 9864022 commit 9779787

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
@@ -9494,8 +9494,8 @@ Consider:
94949494
{
94959495
X x;
94969496
X* p1 { new X }; // see also ???
9497-
unique_ptr<T> p2 { new X }; // unique ownership; see also ???
9498-
shared_ptr<T> p3 { new X }; // shared ownership; see also ???
9497+
unique_ptr<X> p2 { new X }; // unique ownership; see also ???
9498+
shared_ptr<X> p3 { new X }; // shared ownership; see also ???
94999499
auto p4 = make_unique<X>(); // unique_ownership, preferable to the explicit use "new"
95009500
auto p5 = make_shared<X>(); // shared ownership, preferable to the explicit use "new"
95019501
}

0 commit comments

Comments
 (0)