From 4c7fba87d59e45b319645061e77679c6eec6253d Mon Sep 17 00:00:00 2001 From: William Ma Date: Wed, 28 Aug 2013 04:41:41 +1000 Subject: [PATCH] fixed auto iterator in cpp --- snippets/cpp.snippets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/cpp.snippets b/snippets/cpp.snippets index e95d353..1fa9ec8 100644 --- a/snippets/cpp.snippets +++ b/snippets/cpp.snippets @@ -116,9 +116,9 @@ snippet iter # auto iterator snippet itera - for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) { - ${2:std::cout << *$1 << std::endl;} - }${3} + for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) { + ${3:std::cout << *$1 << std::endl;} + }${4} ## ## Lambdas # lamda (one line)