book: typo fixes (#248)

This commit is contained in:
ALAN
2022-08-20 15:24:36 +08:00
committed by GitHub
parent 2e9eed9ecc
commit 237c990510
2 changed files with 4 additions and 4 deletions

View File

@@ -378,8 +378,8 @@ One of the most common and notable examples of type derivation using `auto` is t
```cpp
// before C++11
// cbegin() returns vector<int>::const_iterator
// and therefore itr is type vector<int>::const_iterator
for(vector<int>::const_iterator it = vec.cbegin(); itr != vec.cend(); ++it)
// and therefore it is type vector<int>::const_iterator
for(vector<int>::const_iterator it = vec.cbegin(); it != vec.cend(); ++it)
```
When we have `auto`: