summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorPushkar Sharma <thepsguy@icloud.com>2015-10-05 00:13:54 +0530
committerPushkar Sharma <thepsguy@icloud.com>2015-10-05 00:13:54 +0530
commit87e8e77e5fd8d84a252dbb6d6697202118378774 (patch)
tree53b81c1a15483e948bf9933fd64e1947322e88f1 /c++.html.markdown
parent9bc553c46ce9b7154ec7c82451d71608f4beda82 (diff)
Fixed a mistake from previous commit.
Better explained reference address.
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 bbd2f9a9..bd86e9e5 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -245,9 +245,9 @@ cout << fooRef; // Prints "I am foo. Hi!"
// Doesn't reassign "fooRef". This is the same as "foo = bar", and
// foo == "I am bar"
// after this line.
-cout << &fooRef << endl; //Prints address of fooRef
+cout << &fooRef << endl; //Prints address of foo
fooRef = bar;
-cout << &fooRef << endl; //Prints address of fooRef, AGAIN
+cout << &fooRef << endl; //Still prints address of foo
cout << fooRef; // Prints "I am bar"
//The address of fooRef remains the same, i.e. it is still referring to foo.