Skip to content

Commit 040d5dd

Browse files
author
Steven Oliver
committed
Merge pull request honza#271 from williamhmm/master
fixed auto iterator in cpp
2 parents b410c9e + 4c7fba8 commit 040d5dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snippets/cpp.snippets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ snippet iter
116116

117117
# auto iterator
118118
snippet itera
119-
for (auto ${1:i} = $1.begin(); $1 != $1.end(); ++$1) {
120-
${2:std::cout << *$1 << std::endl;}
121-
}${3}
119+
for (auto ${1:i} = ${2:container}.begin(); $1 != $2.end(); ++$1) {
120+
${3:std::cout << *$1 << std::endl;}
121+
}${4}
122122
##
123123
## Lambdas
124124
# lamda (one line)

0 commit comments

Comments
 (0)