Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Apr 11, 2014
1 parent c35c9ba commit 80d7e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion from_goto_to_std-transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ vector<int> squareVec6(const vector<int>& v)
Now one just has to look at `return i*i` and he directly knows everything.
This is much easier than to decypher a for loop every time.

## Range-based for vs. `[<algorithm>](http://en.cppreference.com/w/cpp/algorithm)`
## Range-based for vs. `[<algorithm>]`(http://en.cppreference.com/w/cpp/algorithm)

A for loop also beginning with `for (int i : v)` could do something totally unrelated to `std::transform`. E.g. it could implement a filter:
```c++
Expand Down

0 comments on commit 80d7e48

Please sign in to comment.