summaryrefslogtreecommitdiffhomepage
path: root/objective-c.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2014-01-07 08:41:07 -0600
committerLevi Bostian <levi.bostian@gmail.com>2014-01-07 08:42:08 -0600
commitafa93d54ad7d370b9b05434c2cf4a09c5b695ddf (patch)
tree07fc1db3a22de3920335387b57e8900aed646889 /objective-c.html.markdown
parentbfa623ac4997cadf132676c49cb92975173ce741 (diff)
Fix typos.
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 886f80e2..a70351b5 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -288,7 +288,7 @@ int main (int argc, const char * argv[])
// @property type name; <= property declarations.
// -/+ (type) Method declarations; <= Method declarations.
// @end
-@interface MyClass : NSObject <MyProtocol> // NSObject is Objective-C base object class.
+@interface MyClass : NSObject <MyProtocol> // NSObject is Objective-C's base object class.
{
// Instance variable declarations (can exist in either interface or implementation file).
int count; // Protected access by default.
@@ -334,7 +334,7 @@ NSLog(@"%i", myClass.count); // prints => 45
long distance; // Private access instance variable.
}
-// To access public variable from the interface file, use '_' followed by variable name:
+// To access a public variable from the interface file, use '_' followed by variable name:
_count = 5; // References "int count" from MyClass interface.
// Access variables defined in implementation file:
distance = 18; // References "long distance" from MyClass implementation.