From 238679df02d995b52b58a11c45a7f0d48048135b Mon Sep 17 00:00:00 2001 From: James Wald Date: Thu, 18 Jan 2018 20:43:06 -0800 Subject: [PATCH] Update property initializer wrap to +4 --- style.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style.md b/style.md index daaac7b..4f7999d 100644 --- a/style.md +++ b/style.md @@ -302,14 +302,14 @@ Expression functions should not wrap to two lines. If an expression function gro ### Properties -When a property initializer does not fit on a single line, break after the equals sign (`=`) and use a continuation indent. +When a property initializer does not fit on a single line, break after the equals sign (`=`) and use a single indent (+4). ```kotlin private val defaultCharset: Charset? = - EncodingRegistry.getInstance().getDefaultCharsetForPropertiesFiles(file) + EncodingRegistry.getInstance().getDefaultCharsetForPropertiesFiles(file) ``` -Properties declaring a `get` and/or `set` function should place each on their own line with a normal indent (+4). Format them using the same rules as functions. +Properties declaring a `get` and/or `set` function should place each on their own line with a single indent (+4). Format them using the same rules as functions. ```kotlin var directory: File? = null