Merge pull request #84 from ShareCat/master

[fix] a typo
This commit is contained in:
Kwongtai 2021-09-18 19:01:49 +08:00 committed by GitHub
commit 8250e4328a
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::array<int, 5> myarray = {2, 16, 77,34, 50};
std::cout << "myarray contains:"; 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 << ' ' << *it;
std::cout << '\n'; std::cout << '\n';