mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fixed typo
Thanks @dalg24!
This commit is contained in:
@@ -12129,7 +12129,7 @@ In the rare cases where the slicing was deliberate the code can be surprising.
|
|||||||
Shape s {c}; // copy construct only the Shape part of Circle
|
Shape s {c}; // copy construct only the Shape part of Circle
|
||||||
s = c; // or copy assign only the Shape part of Circle
|
s = c; // or copy assign only the Shape part of Circle
|
||||||
|
|
||||||
void assign(const shape& src, shape& dest) {
|
void assign(const Shape& src, Shape& dest) {
|
||||||
dest = src;
|
dest = src;
|
||||||
}
|
}
|
||||||
Circle c2 {{1,1}, 43};
|
Circle c2 {{1,1}, 43};
|
||||||
|
|||||||
Reference in New Issue
Block a user