summaryrefslogtreecommitdiffhomepage
path: root/objective-c.html.markdown
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2013-08-16 08:51:16 -0700
committerAdam <adam@adambard.com>2013-08-16 08:51:16 -0700
commit5be20756e046175bf04aea5a7a2c744b807ed384 (patch)
tree16f9f843ceb9d674a6c641926beb58e1b60cf9d4 /objective-c.html.markdown
parentfde1bab1f0d598a9f76e43cc714dcc13be3a0ba7 (diff)
parent9a9b5a31e079c635fe4c5afc1127f88fbad091f3 (diff)
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r--objective-c.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index 2b1b3c67..b92e3218 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,", ii++);
+ NSLog(@"%d,", jj++);
} // => prints "0,"
// "1,"
// "2,"
@@ -256,7 +256,7 @@ int main (int argc, const char * argv[])
}
// Constructors are a way of creating classes
-// This is a default constructor which is call when the object is creating
+// This is a default constructor which is called when the object is creating
- (id)init
{
if ((self = [super init]))