[fix] a typo

This commit is contained in:
Cat 2021-09-15 16:43:01 +08:00 committed by GitHub
parent 456ced1e9a
commit 947c251383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ int main()
{
std::array<int, 5> myarray = {2, 16, 77,34, 50};
std::cout << "myarray contains:";
for(auto it = myarray.begin(); it != myarray.end(); ++i)
for(auto it = myarray.begin(); it != myarray.end(); ++it)
std::cout << ' ' << *it;
std::cout << '\n';