Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cpp/destructors-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int main() {

In the preceding example, the destructor `String::~String` uses the `delete` operator to deallocate the space dynamically allocated for text storage.

## Delcaring destructors
## Declaring destructors
Destructors are functions with the same name as the class but preceded by a tilde (`~`)

Several rules govern the declaration of destructors. Destructors:
Expand Down