mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #207 from tryfinally/patch-2
typo fixes: constxp -> constexpr, spaces
This commit is contained in:
commit
1a3b28260f
|
@ -7269,7 +7269,7 @@ The call will most likely be `f(0, 1)` or `f(1, 0)`, but you don't know which. T
|
||||||
|
|
||||||
No, we don't all know that there a 12 month, numbered 1..12, in a year. Better:
|
No, we don't all know that there a 12 month, numbered 1..12, in a year. Better:
|
||||||
|
|
||||||
constexp int last_month = 12; // months are numbered 1..12
|
constexpr int last_month = 12; // months are numbered 1..12
|
||||||
|
|
||||||
for (int m = first_month; m <= last_month; ++m) // better
|
for (int m = first_month; m <= last_month; ++m) // better
|
||||||
cout << month[m] << '\n';
|
cout << month[m] << '\n';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user