mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-31 04:32:30 +01:00
[C++/en] fix typo (#5236)
This commit is contained in:
parent
d78444d75e
commit
26b5b3a747
4
c++.md
4
c++.md
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user