mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #100 from fabiogaluppo/patch-1
Update CppCoreGuidelines.md
This commit is contained in:
commit
460e6fe986
|
@ -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