Fix comments in C.42 examples

This commit is contained in:
Andrei Maiboroda 2018-04-24 17:30:49 +02:00
parent d49c720e98
commit ff4a3069a1
No known key found for this signature in database
GPG Key ID: 290E6134B4FA2A15

View File

@ -5066,7 +5066,7 @@ Leaving behind an invalid object is asking for trouble.
##### Example
class X2 {
FILE* f; // call init() before any other function
FILE* f;
// ...
public:
X2(const string& name)
@ -5090,7 +5090,7 @@ Leaving behind an invalid object is asking for trouble.
##### Example, bad
class X3 { // bad: the constructor leaves a non-valid object behind
FILE* f; // call init() before any other function
FILE* f; // call is_valid() before any other function
bool valid;
// ...
public: