mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Update CppCoreGuidelines.md
Typo on function in F.21
This commit is contained in:
parent
058e1bfb41
commit
5944e37e44
|
@ -2134,7 +2134,7 @@ For small objects (up to two or three words) is is also faster than alternatives
|
|||
|
||||
void fct(int x); // OK: Unbeatable
|
||||
|
||||
void fct(const int& x); // bad: overhead on access in fct2()
|
||||
void fct2(const int& x); // bad: overhead on access in fct2()
|
||||
|
||||
void fct(int& x); // OK, but means something else; use only for an "out parameter"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user