mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix comment grammar in ES.40 example (#1345)
This commit is contained in:
parent
9f0e9fe0a3
commit
c83acbc347
|
@ -11137,7 +11137,7 @@ Complicated expressions are error-prone.
|
||||||
// bad: assignment hidden in subexpression
|
// bad: assignment hidden in subexpression
|
||||||
while ((c = getc()) != -1)
|
while ((c = getc()) != -1)
|
||||||
|
|
||||||
// bad: two non-local variables assigned in a sub-expressions
|
// bad: two non-local variables assigned in sub-expressions
|
||||||
while ((cin >> c1, cin >> c2), c1 == c2)
|
while ((cin >> c1, cin >> c2), c1 == c2)
|
||||||
|
|
||||||
// better, but possibly still too complicated
|
// better, but possibly still too complicated
|
||||||
|
|
Loading…
Reference in New Issue
Block a user