File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -678,12 +678,12 @@ $(GNAME Destructor):
678
678
679
679
$(P The garbage collector is not guaranteed to run the destructor
680
680
for all unreferenced objects. Furthermore, the order in which the
681
- garbage collector calls destructors for unreference objects
681
+ garbage collector calls destructors for unreferenced objects
682
682
is not specified.
683
683
This means that
684
684
when the garbage collector calls a destructor for an object of a class
685
685
that has
686
- members that are references to garbage collected objects, those
686
+ members which are references to garbage collected objects, those
687
687
references may no longer be valid. This means that destructors
688
688
cannot reference sub objects.
689
689
This rule does not apply to auto objects or objects destructed
You can’t perform that action at this time.
0 commit comments