mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #148 from RicoAntonioFelix/master
Minor fixes to clean up the document...
This commit is contained in:
commit
9e25b93a18
|
@ -10379,7 +10379,7 @@ Examples are `.hh` and `.cxx`. Use such names equivalently.
|
||||||
**Enforcement**:
|
**Enforcement**:
|
||||||
|
|
||||||
* Flag non-conventional file names.
|
* Flag non-conventional file names.
|
||||||
* Check that `.h` and `.cpp`` (and equivalents) follow the rules below.
|
* Check that `.h` and `.cpp` (and equivalents) follow the rules below.
|
||||||
|
|
||||||
|
|
||||||
<a name="Rs-inline"></a>
|
<a name="Rs-inline"></a>
|
||||||
|
@ -10412,7 +10412,7 @@ Examples are `.hh` and `.cxx`. Use such names equivalently.
|
||||||
|
|
||||||
**Reason**: Maintainability. Readability.
|
**Reason**: Maintainability. Readability.
|
||||||
|
|
||||||
**example, bad**:
|
**Example, bad**:
|
||||||
|
|
||||||
// bar.cpp:
|
// bar.cpp:
|
||||||
void bar() { cout << "bar\n"; }
|
void bar() { cout << "bar\n"; }
|
||||||
|
@ -10475,7 +10475,7 @@ The user of `bar` cannot know if the interface used is complete and correct. At
|
||||||
int bar(double) { /* ... */ }
|
int bar(double) { /* ... */ }
|
||||||
double foobar(int);
|
double foobar(int);
|
||||||
|
|
||||||
Thw errors will not be caught until link time for a program calling `bar` or `foobar`.
|
The errors will not be caught until link time for a program calling `bar` or `foobar`.
|
||||||
|
|
||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user