1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 11:45:04 +02:00

[C++/en] fix typo (#5236)

This commit is contained in:
georgev93
2025-01-17 05:46:53 -05:00
committed by GitHub
parent d78444d75e
commit 26b5b3a747

4
c++.md
View File

@@ -292,8 +292,8 @@ std::string retVal = tempObjectFun();
// created whenever a function returns an object, and they are destroyed at the
// end of the evaluation of the enclosing expression (Well, this is what the
// standard says, but compilers are allowed to change this behavior. Look up
// "return value optimization" if you're into this kind of details). So in this
// code:
// "return value optimization" if you're into these kinds of details). So in
// this code:
foo(bar(tempObjectFun()))
// assuming foo and bar exist, the object returned from tempObjectFun is