From 49cfdd4e4fffcc7e987bb72af2f72efd46232875 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei Date: Wed, 16 Sep 2015 00:05:47 +0300 Subject: [PATCH] Update README.md Fix outdated dot syntax example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5aafee6..4768880 100644 --- a/README.md +++ b/README.md @@ -322,14 +322,14 @@ Dot-notation should **always** be used for accessing and mutating properties, as **Preferred:** ```objc -NSInteger arrayCount = [self.array count]; +NSInteger arrayCount = self.array.count; view.backgroundColor = [UIColor orangeColor]; [UIApplication sharedApplication].delegate; ``` **Not Preferred:** ```objc -NSInteger arrayCount = self.array.count; +NSInteger arrayCount = [self.array count]; [view setBackgroundColor:[UIColor orangeColor]]; UIApplication.sharedApplication.delegate; ```