From 80d7e488695993f32dfca5c9964c98ff632219e1 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Fri, 11 Apr 2014 13:37:00 +0200 Subject: [PATCH] typo --- from_goto_to_std-transform.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/from_goto_to_std-transform.md b/from_goto_to_std-transform.md index 34354db..072d55b 100644 --- a/from_goto_to_std-transform.md +++ b/from_goto_to_std-transform.md @@ -115,7 +115,7 @@ vector squareVec6(const vector& 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. `[](http://en.cppreference.com/w/cpp/algorithm)` +## Range-based for vs. `[]`(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++