We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e05a9f commit 740f976Copy full SHA for 740f976
c++.md
@@ -778,7 +778,7 @@ failure:
778
// things are a little cleaner, but still sub-optimal.
779
void doSomethingWithAFile(const char* filename)
780
{
781
- FILE* fh = fopen(filename, "r"); // Open the file in shared_ptrread mode
+ FILE* fh = fopen(filename, "r"); // Open the file in read mode
782
if (fh == nullptr)
783
throw std::runtime_error("Could not open the file.");
784
0 commit comments