Skip to content

Commit a654c80

Browse files
committed
fixed typo
1 parent c265337 commit a654c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp_module_01/ex04/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char **argv)
1212
if (inFile.fail() || inFile.peek() == EOF)
1313
return(std::cout << "File is directory/is empty/failed opening" << std::endl, 1);
1414
std::ofstream outFile((fileName + ".replace").c_str());
15-
if (inFile.fail())
15+
if (outFile.fail())
1616
return(std::cout << "Openning output file failed" << std::endl, 1);
1717

1818
size_t index;
@@ -29,4 +29,4 @@ int main(int argc, char **argv)
2929
outFile.close();
3030
return (0);
3131

32-
}
32+
}

0 commit comments

Comments
 (0)