Skip to content

Commit d0d08ed

Browse files
authored
Fix typo in destructor spec.
1 parent 83718ac commit d0d08ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/class.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,12 +678,12 @@ $(GNAME Destructor):
678678

679679
$(P The garbage collector is not guaranteed to run the destructor
680680
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
682682
is not specified.
683683
This means that
684684
when the garbage collector calls a destructor for an object of a class
685685
that has
686-
members that are references to garbage collected objects, those
686+
members which are references to garbage collected objects, those
687687
references may no longer be valid. This means that destructors
688688
cannot reference sub objects.
689689
This rule does not apply to auto objects or objects destructed

0 commit comments

Comments
 (0)