Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 085e928 commit 648efa89937205af610612a75201862b5f59013f @greenmobile greenmobile committed Dec 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -196,7 +196,7 @@ There are also counterpart methods which return NSUInteger rather than NSNumbers
#### Aggregate Operations
- NSPredicate *prediate = [NSPredicate predicateWithFormat:@"diaryEntry.date == %@", today];
+ NSPredicate *predicate = [NSPredicate predicateWithFormat:@"diaryEntry.date == %@", today];
int totalFat = [[CTFoodDiaryEntry MR_aggregateOperation:@"sum:" onAttribute:@"fatColories" withPredicate:predicate] intValue];
int fattest = [[CTFoodDiaryEntry MR_aggregateOperation:@"max:" onAttribute:@"fatColories" withPredicate:predicate] intValue];

0 comments on commit 648efa8

Please sign in to comment.