mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Update CppCoreGuidelines.md
Typo in example F.20
This commit is contained in:
parent
058e1bfb41
commit
c4f87d19a9
|
@ -2108,7 +2108,7 @@ When I call `length(s)` should I test for `s==nullptr` first? Should the impleme
|
|||
|
||||
**Example**:
|
||||
|
||||
void fct(const string& s); // OK: pass by const reference; always checp
|
||||
void fct(const string& s); // OK: pass by const reference; always cheap
|
||||
|
||||
void fct2(string s); // bad: potentially expensive
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user