mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fixed typo
Thanks @dalg24!
This commit is contained in:
parent
d6d7d749c3
commit
0fe73c966d
|
@ -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
|
||||
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;
|
||||
}
|
||||
Circle c2 {{1,1}, 43};
|
||||
|
|
Loading…
Reference in New Issue
Block a user