You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the initializer expression is multi-line, the `else` keyword and opening
161
+
brace of the block (i.e. `else {`) should be put on the same line as the end of
162
+
the initializer expression, with a space between them, if all the following are
163
+
true:
117
164
118
165
* The initializer expression ends with one or more closing
119
166
parentheses, square brackets, and/or braces
120
167
* There is nothing else on that line
121
-
* That line is not indented beyond the indent of the first line containing the `let` keyword
168
+
* That line has the same indentation level as the initial `let` keyword.
122
169
123
170
For example:
124
171
@@ -135,7 +182,9 @@ let Some(x) = y.foo(
135
182
}
136
183
```
137
184
138
-
Otherwise, the `else` keyword and opening brace should be placed on the next line after the end of the initializer expression, and should not be indented (the `else` keyword should be aligned with the `let` keyword).
185
+
Otherwise, the `else` keyword and opening brace should be placed on the next
186
+
line after the end of the initializer expression, and the `else` keyword should
187
+
have the same indentation level as the `let` keyword.
0 commit comments