Skip to content

Commit

Permalink
Fix README formatting of example code
Browse files Browse the repository at this point in the history
  • Loading branch information
mhallendal committed Mar 12, 2015
1 parent 3f7d587 commit 814b666
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ NSString *result = MOGTransform(array, MOGStringConcatReducer(@", "), MOGCompose

It can also be used on any `NSObject` like:
```objective-c
id object = @10;
NSArray *expected = @[@(-10), @0, @10];
id object = @10;
NSArray *expected = @[@(-10), @0, @10];

NSArray *result = [object mog_transform:MOGFlatMap(^id(NSNumber *number) {
return @[@(-number.intValue), @0, number];
}) reducer:MOGArrayReducer()];
NSArray *result = [object mog_transform:MOGFlatMap(^id(NSNumber *number) {
return @[@(-number.intValue), @0, number];
}) reducer:MOGArrayReducer()];

// result = @[@(-10), @0, @10]
```
Expand Down

0 comments on commit 814b666

Please sign in to comment.