Skip to content

Commit 0c0fdc9

Browse files
jawwadrayfix
authored andcommitted
Minor typo fixes (kodecocodes#242)
1 parent bbf7026 commit 0c0fdc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,15 @@ class MyViewController: UIViewController, UITableViewDataSource, UIScrollViewDel
208208
}
209209
```
210210

211-
Since the compiler does not allow you to re-declare protocol conformance in a derived class, it is not always required to replicate the extension groups of the base class. This is especially true if the derived class is a terminal class and a small number of methods are being overriden. When to preserve the extension groups is left to the discretion of the author.
211+
Since the compiler does not allow you to re-declare protocol conformance in a derived class, it is not always required to replicate the extension groups of the base class. This is especially true if the derived class is a terminal class and a small number of methods are being overridden. When to preserve the extension groups is left to the discretion of the author.
212212

213213
For UIKit view controllers, consider grouping lifecycle, custom accessors, and IBAction in separate class extensions.
214214

215215
### Unused Code
216216

217217
Unused (dead) code, including Xcode template code and placeholder comments should be removed. An exception is when your tutorial or book instructs the user to use the commented code.
218218

219-
Aspirational methods not directly associated with the tutorial whose implementation simply calls the super class should also be removed. This includes any empty/unused UIApplicationDelegate methods.
219+
Aspirational methods not directly associated with the tutorial whose implementation simply calls the superclass should also be removed. This includes any empty/unused UIApplicationDelegate methods.
220220

221221
**Not Preferred:**
222222
```swift
@@ -794,7 +794,7 @@ while i < attendeeList.count {
794794

795795
## Golden Path
796796

797-
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. The `guard` statement is built for this.
797+
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. The `guard` statement is built for this.
798798

799799
**Preferred:**
800800
```swift

0 commit comments

Comments
 (0)