summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2018-12-29 01:06:32 +0530
committerGitHub <noreply@github.com>2018-12-29 01:06:32 +0530
commit0ee748507fd7d6b07cd36f705db6c2ccca58b5dc (patch)
treed590260b447408ab1a5d6b2743e6f95280d410d4
parentee57a33755bb940fa34762ea53b77e7341eb2e71 (diff)
parent6c4a7afacc93ccd6a36e2b50e029c9f6fbe17726 (diff)
Merge pull request #3437 from superyyrrzz/patch-1
[c++/en] add missing spaces after `//`
-rw-r--r--c++.html.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 4113d5f4..0f7cf514 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -78,7 +78,7 @@ int* ip = nullptr;
// The C++ standard version:
#include <cstdio>
-//The C standard version:
+// The C standard version:
#include <stdio.h>
int main()
@@ -257,7 +257,7 @@ fooRef = bar;
cout << &fooRef << endl; //Still prints the address of foo
cout << fooRef; // Prints "I am bar"
-//The address of fooRef remains the same, i.e. it is still referring to foo.
+// The address of fooRef remains the same, i.e. it is still referring to foo.
const string& barRef = bar; // Create a const reference to bar.
@@ -822,8 +822,8 @@ struct compareFunction {
return a.j < b.j;
}
};
-//this isn't allowed (although it can vary depending on compiler)
-//std::map<Foo, int> fooMap;
+// this isn't allowed (although it can vary depending on compiler)
+// std::map<Foo, int> fooMap;
std::map<Foo, int, compareFunction> fooMap;
fooMap[Foo(1)] = 1;
fooMap.find(Foo(1)); //true