Skip to content

Commit 4bbd68c

Browse files
committed
Apply wording and dictionary fixes
1 parent 0ece1d9 commit 4bbd68c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CppCoreGuidelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4671,7 +4671,7 @@ Concrete type rule summary:
46714671
* [C.10: Prefer concrete types over class hierarchies](#rc-concrete)
46724672
* [C.11: Make concrete types regular](#rc-regular)
46734673
* [C.12: Don't make data members `const` or references in a copyable or movable type](#rc-constref)
4674-
* [C.13: If one data member uses another, declare it before the other](#rc-lifetime)
4674+
* [C.13: If data member `B` uses another data member `A`, declare `A` before `B`](#rc-lifetime)
46754675

46764676

46774677
### <a name="rc-concrete"></a>C.10: Prefer concrete types over class hierarchies
@@ -4793,7 +4793,7 @@ If you need a member to point to something, use a pointer (raw or smart, and `gs
47934793
Flag a data member that is `const`, `&`, or `&&` in a type that has any copy or move operation.
47944794

47954795

4796-
### <a name="rc-lifetime"></a>C.13: If one data member uses another, declare it before the other
4796+
### <a name="rc-lifetime"></a>C.13: If data member `B` uses another data member `A`, declare `A` before `B`
47974797

47984798
##### Reason
47994799

@@ -4807,7 +4807,7 @@ If data member `B` uses another data member `A`, then `A` must be declared befor
48074807

48084808
// Bad: b uses a, but a is declared after b.
48094809
// Construction order is b then a; destruction order is a then b.
4810-
// So b touches a outside a's lifetime.
4810+
// So b touches a outside the lifetime of a.
48114811

48124812
class X {
48134813
struct B {

0 commit comments

Comments
 (0)