From 01150e5309c2c924df02405c66d9b5cfb759eac9 Mon Sep 17 00:00:00 2001 From: Dave Caunt Date: Wed, 4 Sep 2013 12:38:47 +0100 Subject: [PATCH] Fixed For loop example so that jj is not incremented twice in each iteration of the loop --- objective-c.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objective-c.html.markdown b/objective-c.html.markdown index 9e9f43e7..e8c979d8 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -160,7 +160,7 @@ int main (int argc, const char * argv[]) int jj; for (jj=0; jj < 4; jj++) { - NSLog(@"%d,", jj++); + NSLog(@"%d,", jj); } // => prints "0," // "1," // "2,"