From 0fa27e8c9b06b33af56284bc64e057cd656dbdfe Mon Sep 17 00:00:00 2001 From: Wojciech Nagrodzki <278594+wnagrodzki@users.noreply.github.com> Date: Thu, 16 Aug 2018 18:05:12 +0200 Subject: [PATCH] Added "Place noop comment in functions left empty by intention" section --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ca90cf4..3f87705 100644 --- a/README.md +++ b/README.md @@ -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