mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix comment grammar in ES.40 example (#1345)
This commit is contained in:
committed by
Sergey Zubkov
parent
9f0e9fe0a3
commit
c83acbc347
@@ -11137,7 +11137,7 @@ Complicated expressions are error-prone.
|
||||
// bad: assignment hidden in subexpression
|
||||
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)
|
||||
|
||||
// better, but possibly still too complicated
|
||||
|
||||
Reference in New Issue
Block a user