Skip to content

Commit

Permalink
Update style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai Holler committed May 24, 2018
1 parent 06c6f79 commit dda3cd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -238,7 +238,10 @@ static void someFunction() {
- There is mostly no sense using nullability annotations outside of interface declarations.
```objc
// Properties
@property(nonatomic, strong, nullable) NSNumber *status
// Never include: `atomic`, `readwrite`, `strong`, `assign`.
// Only specify nullability if it isn't assumed from NS_ASSUME.
// (nullability, atomicity, storage class, writability, custom getter, custom setter)
@property (nullable, copy) NSNumber *status

// Methods
- (nullable NSNumber *)doSomethingWithString:(nullable NSString *)str;
Expand Down

0 comments on commit dda3cd2

Please sign in to comment.