Skip to content

Commit

Permalink
Merge pull request kodecocodes#25 from ColinEberhardt/hollance-typo-fix
Browse files Browse the repository at this point in the history
Fixed typos.
  • Loading branch information
ndubbs committed Nov 9, 2013
2 parents 2dd588c + 9649116 commit 9de8aef
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ Here are some of the documents from Apple that informed the style guide. If some

## Code Organization

* use `#pragma mark -`s to categorize methods in functional groupings and protocol/delegate implementations following this general structure.
* use `#pragma mark -` to categorize methods in functional groupings and protocol/delegate implementations following this general structure.

```objc
#pragma mark - Lifecycle

- (instancetype)init {}
- (void)dealloc {}
- (void)viewDidLoad {}
Expand Down Expand Up @@ -167,7 +168,7 @@ A two letter prefix (e.g. `RW`) should always be used for class names and consta
**Good:**

```objc
static const RWTimeInterval RWTutorialViewControllerNavigationFadeAnimationDuration = 0.3;
static const NSTimeInterval RWTutorialViewControllerNavigationFadeAnimationDuration = 0.3;
```

**Bad:**
Expand Down Expand Up @@ -198,7 +199,7 @@ When using properties, instance variables should always be accessed and mutated

In method signatures, there should be a space after the scope (-/+ symbol). There should be a space between the method segments (matching Apple's style). Always include a keyword and be descriptive with the word before the argument which describes the argument.

**Good:**:
**Good:**
```objc
- (void)setExampleText:(NSString *)text image:(UIImage *)image;
- (void)sendAction:(SEL)aSelector to:(id)anObject forAllCells:(BOOL)flag;
Expand Down Expand Up @@ -299,7 +300,7 @@ static const CGFloat RWImageThumbnailHeight = 50.0;
## Enumerated Types
When using `enum`s, it is recommended to use the new fixed underlying type specification because it has stronger type checking and code completion. The SDK now includes a macro to facilitate and encourage use of fixed underlying types `NS_ENUM()`
When using `enum`s, it is recommended to use the new fixed underlying type specification because it has stronger type checking and code completion. The SDK now includes a macro to facilitate and encourage use of fixed underlying types: `NS_ENUM()`
**For Example:**
Expand Down Expand Up @@ -443,9 +444,9 @@ CGFloat width = frame.size.width;
CGFloat height = frame.size.height;
```

##Golden Path
## Golden Path

When coding with conditionals, the left hand margin of the code should be the "golden" or "happy" path. That is, don't nest `if` statements. Multiple return statements are ok.
When coding with conditionals, the left hand margin of the code should be the "golden" or "happy" path. That is, don't nest `if` statements. Multiple return statements are OK.

**Good:**

Expand Down

0 comments on commit 9de8aef

Please sign in to comment.