Skip to content

Commit

Permalink
Changed condition for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavb authored Oct 4, 2017
1 parent 2845228 commit 91d74ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch03/ex3_20a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main()
return -1;
}

for (int i = 0; i != ivec.size() - 1; ++i)
for (int i = 0; i < ivec.size() - 1; ++i)
cout << ivec[i] + ivec[i + 1] << " ";
cout << endl;

Expand Down

0 comments on commit 91d74ec

Please sign in to comment.