mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Merge pull request #46 from vendethiel/patch-2
fix indexing typo in ES.2.
This commit is contained in:
@@ -6391,7 +6391,7 @@ The more traditional and lower-level near-equivalent is longer, messier, harder
|
|||||||
while (is && elemcount<maxelem) {
|
while (is && elemcount<maxelem) {
|
||||||
auto s = new char[maxstring];
|
auto s = new char[maxstring];
|
||||||
is.read(s,maxstring);
|
is.read(s,maxstring);
|
||||||
res[elemcount++= = s;
|
res[elemcount++] = s;
|
||||||
}
|
}
|
||||||
nread = elemcount;
|
nread = elemcount;
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user