Skip to content

Commit 5fd0061

Browse files
authored
Update destructors-cpp.md
1 parent 5e29c1a commit 5fd0061

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/cpp/destructors-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Consider the following declaration of a `String` class:
1919
class String
2020
{
2121
public:
22-
String(const char* ch); // Declare constructor
23-
~String() noexcept; // and destructor.
22+
String(const char* ch); // Declare the constructor
23+
~String(); // Declare the destructor
2424
private:
2525
char* _text{nullptr};
2626
};
2727

28-
// Define the constructor.
28+
// Define the constructor
2929
String::String(const char* ch)
3030
{
3131
size_t sizeOfText = strlen(ch) + 1; // +1 to account for trailing NULL

0 commit comments

Comments
 (0)