From c5000e2d77382f04269bf60a75aa5863161ed05d Mon Sep 17 00:00:00 2001 From: Nguyen Le Date: Fri, 17 Jul 2015 09:27:09 -0700 Subject: [PATCH] Javascript Postincrementers --- snippets/javascript/javascript.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index 4832815..9215c87 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -88,12 +88,12 @@ snippet ret # for loop snippet for - for (var ${2:i} = 0, l = ${1:arr}.length; $2 < l; $2 ++) { + for (var ${2:i} = 0, l = ${1:arr}.length; $2 < l; $2++) { var ${3:v} = $1[$2];${0:} } # Reversed for loop snippet forr - for (var ${2:i} = ${1:arr}.length - 1; $2 >= 0; $2 --) { + for (var ${2:i} = ${1:arr}.length - 1; $2 >= 0; $2--) { var ${3:v} = $1[$2];${0:} } # While loop