mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
typo
This commit is contained in:
parent
6867d13363
commit
ced78ffad1
|
@ -6225,7 +6225,7 @@ Now `Shape` is a poor example of a class with an implementation,
|
||||||
but bare with us because this is just a simple example of a technique aimed at more complex hierarchies.
|
but bare with us because this is just a simple example of a technique aimed at more complex hierarchies.
|
||||||
|
|
||||||
class Impl::Circle : public Circle, public Impl::Shape { // implementation
|
class Impl::Circle : public Circle, public Impl::Shape { // implementation
|
||||||
publc:
|
public:
|
||||||
// constructors, destructor
|
// constructors, destructor
|
||||||
|
|
||||||
int radius() { /* ... */ }
|
int radius() { /* ... */ }
|
||||||
|
@ -6240,7 +6240,7 @@ And we could extend the hierarchies by adding a Smiley class (:-)):
|
||||||
};
|
};
|
||||||
|
|
||||||
class Impl::Smiley : Public Smiley, public Impl::Circle { // implementation
|
class Impl::Smiley : Public Smiley, public Impl::Circle { // implementation
|
||||||
publc:
|
public:
|
||||||
// constructors, destructor
|
// constructors, destructor
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user