mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 13:14:40 +03:00
Merge pull request #100 from fabiogaluppo/patch-1
Update CppCoreGuidelines.md
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**:
|
**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
|
void fct2(string s); // bad: potentially expensive
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user