diff --git a/from_goto_to_std-transform.md b/from_goto_to_std-transform.md index 1dcd14f..6fcbce8 100644 --- a/from_goto_to_std-transform.md +++ b/from_goto_to_std-transform.md @@ -60,7 +60,7 @@ vector squareVec3(const vector& v) return result; } ``` -Here you can immediatly see that the algorithm iterates ofter the elements of `v` but you still have to read the whole line `for (auto it = begin(v); it != end(v); ++it)` until you know that every single element is used and not e.g. every second, since the increase could also be `it += 2` or something else instead of `++it`. +Here you can immediately see that the algorithm iterates ofter the elements of `v` but you still have to read the whole line `for (auto it = begin(v); it != end(v); ++it)` until you know that every single element is used and not e.g. every second, since the increase could also be `it += 2` or something else instead of `++it`. ## Range-based for loop @@ -186,4 +186,4 @@ Sure, readability also has something to with taste or to be precise familiarity, ## Further reading With [effective stl](http://www.amazon.com/dp/0201749629) Scott Meyers has written a very nice book covering this and more in depths. Herb Sutter's [talk about lambdas](https://www.youtube.com/watch?v=rcgRY7sOA58) can also help to get more into this topic. -Also you can [discuss this article on reddit](http://www.reddit.com/r/programming/comments/22q18m/c_from_goto_to_stdtransform/). \ No newline at end of file +Also you can [discuss this article on reddit](http://www.reddit.com/r/programming/comments/22q18m/c_from_goto_to_stdtransform/).