diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4b2fb57..a3dd5ce 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8197,7 +8197,7 @@ The allocation of `buf` may fail and leak the file handle. void f(const string& name) { - ifstream f{name, "r"}; // open the file + ifstream f{name}; // open the file vector buf(1024); // ... }