Skip to content

Commit 7a9aca2

Browse files
committed
Better external name, via @larrylegend
1 parent 574c748 commit 7a9aca2

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
@@ -64,12 +64,12 @@ For functions and init methods, prefer named parameters for all arguments unless
6464
```swift
6565
func dateFromString(dateString: String) -> NSDate
6666
func convertPointAt(column column: Int, row: Int) -> CGPoint
67-
func timedAction(delay delay: NSTimeInterval, perform action: SKAction) -> SKAction!
67+
func timedAction(afterDelay delay: NSTimeInterval, perform action: SKAction) -> SKAction!
6868

6969
// would be called like this:
7070
dateFromString("2014-03-14")
7171
convertPointAt(column: 42, row: 13)
72-
timedAction(delay: 1.0, perform: someOtherAction)
72+
timedAction(afterDelay: 1.0, perform: someOtherAction)
7373
```
7474

7575
For methods, follow the standard Apple convention of referring to the first parameter in the method name:
@@ -102,7 +102,7 @@ When referring to functions in prose (tutorials, books, comments) include the re
102102
>
103103
> If you call `dateFromString(_:)` make sure that you provide a string with the format "yyyy-MM-dd".
104104
>
105-
> If you call `timedAction(delay:perform:)` from `viewDidLoad()` remember to provide an adjusted delay value and an action to perform.
105+
> If you call `timedAction(afterDelay:perform:)` from `viewDidLoad()` remember to provide an adjusted delay value and an action to perform.
106106
>
107107
> You shouldn't call the data source method `tableView(_:cellForRowAtIndexPath:)` directly.
108108

0 commit comments

Comments
 (0)