Skip to content

Commit

Permalink
Bring inline with book and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjgalloway committed May 27, 2013
1 parent 4d06706 commit 09b2a42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapter_5/item_37.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ while ([object retainCount]) {
NSString *string = @"Some string";
NSLog(@"string retainCount = %lu", [string retainCount]);

NSNumber *number = @1;
NSLog(@"number retainCount = %lu", [number retainCount]);
NSNumber *numberI = @1;
NSLog(@"numberI retainCount = %lu", [numberI retainCount]);

NSNumber *numberFloat = @3.141f;
NSLog(@"numberFloat retainCount = %lu", [numberFloat retainCount]);
NSNumber *numberF = @3.141f;
NSLog(@"numberF retainCount = %lu", [numberF retainCount]);


// Showing retain count might not necessarily be what you expect
Expand Down

0 comments on commit 09b2a42

Please sign in to comment.