Skip to content

Commit 3876d12

Browse files
committed
Fix a few typos
1 parent d155244 commit 3876d12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CppCoreGuidelines.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6161,7 +6161,7 @@ To make this interface useful, we must provide its implementation classes (here,
61616161
};
61626162

61636163
Now `Shape` is a poor example of a class with an implementation,
6164-
but bare with us because this is just a simple example of a technique aimed at more complex hierrchies.
6164+
but bear with us because this is just a simple example of a technique aimed at more complex hierarchies.
61656165

61666166
class Impl::Circle : public Circle, public Impl::Shape { // implementation
61676167
publc:
@@ -6189,7 +6189,7 @@ There are now two hierarchies:
61896189
* interface: Smiley -> Circle -> Shape
61906190
* implementation: Impl::Smiley -> Impl::Circle -> Impl::Shape
61916191

6192-
Since each implementation derived from its inteface as well as its implementation base class we get a latice (DAG):
6192+
Since each implementation derived from its interface as well as its implementation base class we get a lattice (DAG):
61936193

61946194
Smiley -> Circle -> Shape
61956195
^ ^ ^
@@ -6202,15 +6202,15 @@ Another (related) technique for separating interface and implementation is [PIMP
62026202

62036203
##### Note
62046204

6205-
There is often a choice between offering common functionality as (implemented) base class funcetions and free-standing functions
6205+
There is often a choice between offering common functionality as (implemented) base class functions and free-standing functions
62066206
(in an implementation namespace).
62076207
Base classes gives a shorter notation and easier access to shared data (in the base)
62086208
at the cost of the functionality being available only to users of the hierarchy.
62096209

62106210
##### Enforcement
62116211

62126212
* Flag a derived to base conversion to a base with both data and virtual functions
6213-
(except for calls from a derived class memvber to a base class member)
6213+
(except for calls from a derived class member to a base class member)
62146214
* ???
62156215

62166216

0 commit comments

Comments
 (0)