summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--c++.html.markdown4
-rw-r--r--javascript.html.markdown2
2 files changed, 3 insertions, 3 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;
diff --git a/javascript.html.markdown b/javascript.html.markdown
index f61e6c74..95808d05 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -207,7 +207,7 @@ while (true){
}
// Do-while loops are like while loops, except they always run at least once.
-var input
+var input;
do {
input = getInput();
} while (!isValid(input))