summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2015-02-25 10:24:37 -0700
committerGeoff Liu <cangming.liu@gmail.com>2015-02-25 10:24:37 -0700
commitaae2bf7a88f4ae2b05ce35e0b5ae014e1141b583 (patch)
tree4b98a624598562f9a03f72305e748107ae868123 /c++.html.markdown
parent0f8b48e977b02887410ec003b6056842c38d4d8c (diff)
parentebdde372443c0fe51b2513c9bfcfad8378ae52cd (diff)
Merge pull request #975 from riqpe/master
fixed some typos on C++
Diffstat (limited to 'c++.html.markdown')
-rw-r--r--c++.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 5f80f26f..67fa054c 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -492,7 +492,7 @@ bool doSomethingWithAFile(const char* filename)
{
FILE* fh = fopen(filename, "r"); // Open the file in read mode
if (fh == nullptr) // The returned pointer is null on failure.
- reuturn false; // Report that failure to the caller.
+ return false; // Report that failure to the caller.
// Assume each function returns false if it failed
if (!doSomethingWithTheFile(fh)) {
@@ -513,7 +513,7 @@ bool doSomethingWithAFile(const char* filename)
{
FILE* fh = fopen(filename, "r");
if (fh == nullptr)
- reuturn false;
+ return false;
if (!doSomethingWithTheFile(fh))
goto failure;