diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2014-01-07 08:41:07 -0600 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2014-01-07 08:42:08 -0600 |
commit | afa93d54ad7d370b9b05434c2cf4a09c5b695ddf (patch) | |
tree | 07fc1db3a22de3920335387b57e8900aed646889 /objective-c.html.markdown | |
parent | bfa623ac4997cadf132676c49cb92975173ce741 (diff) |
Fix typos.
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r-- | objective-c.html.markdown | 4 |
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. |