mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Update CppCoreGuidelines.md
Typo in example F.20
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user