Added "Place noop comment in functions left empty by intention" section

This commit is contained in:
Wojciech Nagrodzki 2018-08-16 18:05:12 +02:00
parent 11146a538c
commit 0fa27e8c9b
Signed by: wnagrodzki
GPG key ID: E9D0EB0302264569

View file

@ -26,3 +26,12 @@ guard let value = optionalValue else { fatalError("reason why value must be pres
```
> This is to avoid situations in which reason for force unwrapping is undocumented.
### Place noop comment in functions left empty by intention
```swift
func didDeliver(parcel: Parcel) {
// noop
}
```
> This is to make clear function is empty by intention and not by mistake