Skip to content

Commit eb96502

Browse files
committed
Fixes kodecocodes#252. Don’t include the () when using the shortest form of method call.
1 parent 3306916 commit eb96502

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
@@ -87,9 +87,9 @@ Descriptive and consistent naming makes software easier to read and understand.
8787

8888
When referring to methods in prose, being unambiguous is critical. To refer to a method name, use the simplest form possible.
8989

90-
1. Write the method name with no parameters. **Example:** Next, you need to call `addTarget()`.
91-
2. Write the method name with argument labels. **Example:** Next, you need to call `addTarget(_:action:)`.
92-
3. Write the full method name with argument labels and types. **Example:** Next, you need to call `addTarget(_: Any?, action: Selector?)`.
90+
1. Write the method name with no parameters. **Example:** Next, you need to call the method `addTarget`.
91+
2. Write the method name with argument labels. **Example:** Next, you need to call the method `addTarget(_:action:)`.
92+
3. Write the full method name with argument labels and types. **Example:** Next, you need to call the method `addTarget(_: Any?, action: Selector?)`.
9393

9494
For the above example using `UIGestureRecognizer`, 1 is unambiguous and preferred.
9595

0 commit comments

Comments
 (0)