Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ for (int i = 0; i < 10; i++) {
* No spaces between parentheses and their contents.

```objc
if (shitIsBad) return;
if (somethingIsBad) return;

if (something == nil) {
// do stuff
Expand Down Expand Up @@ -154,21 +154,21 @@ id (^blockName2)(id) = ^ id (id args) {
* Dictionary literals should have no space between the key and the colon, and a single space between colon and value.

``` objc
NSArray *theShit = @[ @1, @2, @3 ];
NSArray *theStuff = @[ @1, @2, @3 ];

NSDictionary *keyedShit = @{ GHDidCreateStyleGuide: @YES };
NSDictionary *keyedStuff = @{ GHDidCreateStyleGuide: @YES };
```

* Longer or more complex literals should be split over multiple lines (optionally with a terminating comma):

``` objc
NSArray *theShit = @[
NSArray *theStuff = @[
@"Got some long string objects in here.",
[AndSomeModelObjects too],
@"Moar strings."
];

NSDictionary *keyedShit = @{
NSDictionary *keyedStuff = @{
@"this.key": @"corresponds to this value",
@"otherKey": @"remoteData.payload",
@"some": @"more",
Expand Down