1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 01:34:19 +02:00

Merge pull request #1036 from Arnie97/patch-2

[c++/en] Fix spelling
This commit is contained in:
Geoff Liu
2015-04-12 22:00:50 -06:00

View File

@@ -555,7 +555,7 @@ void doSomethingWithAFile(const char* filename)
// Compare this to the use of C++'s file stream class (fstream) // Compare this to the use of C++'s file stream class (fstream)
// fstream uses its destructor to close the file. // fstream uses its destructor to close the file.
// Recall from above that destructors are automatically called // Recall from above that destructors are automatically called
// whenver an object falls out of scope. // whenever an object falls out of scope.
void doSomethingWithAFile(const std::string& filename) void doSomethingWithAFile(const std::string& filename)
{ {
// ifstream is short for input file stream // ifstream is short for input file stream