From 4d1e60fc0b95858f4f91c852407ddf543143a606 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 7 Dec 2020 16:52:25 +0000 Subject: [PATCH] Update egyptian brackets --- code-style.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code-style.md b/code-style.md index 17416d8..1562aef 100644 --- a/code-style.md +++ b/code-style.md @@ -1,9 +1,8 @@ * Lines no longer than 80 characters -* Egyptian brackets +* Egyptian brackets (`else/catch/finally` continue the same line as the preceding bracket) * Tabs for indentation, tab width of 4 * `if/else/for/while` may omit brackets if the body fits on a single line * If the `if` uses brackets, the `else` should too (and vice versa) -* `else/catch/finally` continue the same line as the preceding bracket * Use `foo` rather than `mFoo`, `_foo`, etc for field names * Use `foo` rather than `this.foo` unless there's also a local `foo` * `CONSTANTS_LIKE_THIS`, `variablesLikeThis`