summaryrefslogtreecommitdiffhomepage
path: root/objective-c.html.markdown
diff options
context:
space:
mode:
authorDave Caunt <dcaunt@gmail.com>2013-09-04 12:38:47 +0100
committerDave Caunt <dcaunt@gmail.com>2013-09-04 12:38:47 +0100
commit01150e5309c2c924df02405c66d9b5cfb759eac9 (patch)
tree860f66d27c5aeeb2f6716a0d94d2a1be42d9bcb9 /objective-c.html.markdown
parent412b312c45ccb8922f92c4ee364819fb0add7734 (diff)
Fixed For loop example so that jj is not incremented twice in each iteration of the loop
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r--objective-c.html.markdown2
1 files changed, 1 insertions, 1 deletions
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,"