Merge pull request #1370 from dreamtocode/patch-2

Update c++.html.markdown
This commit is contained in:
ven 2015-10-07 00:21:12 +02:00
commit 6ac7368b3b

View File

@ -264,7 +264,7 @@ string retVal = tempObjectFun();
// What happens in the second line is actually: // What happens in the second line is actually:
// - a string object is returned from tempObjectFun // - a string object is returned from tempObjectFun
// - a new string is constructed with the returned object as arugment to the // - a new string is constructed with the returned object as argument to the
// constructor // constructor
// - the returned object is destroyed // - the returned object is destroyed
// The returned object is called a temporary object. Temporary objects are // The returned object is called a temporary object. Temporary objects are