Skip to content

Commit 0256800

Browse files
committed
Always name all parameters
1 parent b919f36 commit 0256800

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.markdown

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Writing Objective-C? Check out our [Objective-C Style Guide](https://github.com/
99
## Table of Contents
1010

1111
* [Naming](#naming)
12+
* [Prose](#prose)
1213
* [Class Prefixes](#class-prefixes)
1314
* [Spacing](#spacing)
1415
* [Comments](#comments)
@@ -78,11 +79,13 @@ class Guideline {
7879
}
7980
```
8081

81-
When referring to functions in prose (tutorials, books, comments) include the required parameter names from the caller's perspective. If the context is clear and the exact signature is not important, you can use just the method name.
82+
### Prose
83+
84+
When referring to functions in prose (tutorials, books, comments) include the required parameter names from the caller's perspective or `_` for unnamed parameters.
8285

8386
> Call `convertPointAt(column:row:)` from your own `init` implementation.
8487
>
85-
> If you implement `timedAction`, remember to provide an appropriate delay value.
88+
> If you call `timedAction(_:)` from `viewDidLoad()` remember to provide an adjusted delay value.
8689
>
8790
> You shouldn't call the data source method `tableView(_:cellForRowAtIndexPath:)` directly.
8891

0 commit comments

Comments
 (0)