Skip to content

Commit 740f976

Browse files
authored
Fix typo in file opening comment (#5457)
1 parent 8e05a9f commit 740f976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c++.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ failure:
778778
// things are a little cleaner, but still sub-optimal.
779779
void doSomethingWithAFile(const char* filename)
780780
{
781-
FILE* fh = fopen(filename, "r"); // Open the file in shared_ptrread mode
781+
FILE* fh = fopen(filename, "r"); // Open the file in read mode
782782
if (fh == nullptr)
783783
throw std::runtime_error("Could not open the file.");
784784

0 commit comments

Comments
 (0)