1
1
### Let statements
2
2
3
3
There should be spaces after the ` : ` and on both sides of the ` = ` (if they are
4
- present). No space before the semi-colon .
4
+ present). No space before the semicolon .
5
5
6
6
``` rust
7
7
// A comment.
@@ -194,7 +194,7 @@ used to determine whether a let-else statement is *short*.
194
194
### Macros in statement position
195
195
196
196
A macro use in statement position should use parentheses or square brackets as
197
- delimiters and should be terminated with a semi-colon . There should be no spaces
197
+ delimiters and should be terminated with a semicolon . There should be no spaces
198
198
between the name, ` ! ` , the delimiters, or the ` ; ` .
199
199
200
200
``` rust
@@ -205,13 +205,13 @@ a_macro!(...);
205
205
206
206
### Expressions in statement position
207
207
208
- There should be no space between the expression and the semi-colon .
208
+ There should be no space between the expression and the semicolon .
209
209
210
210
```
211
211
<expr>;
212
212
```
213
213
214
- All expressions in statement position should be terminated with a semi-colon ,
214
+ All expressions in statement position should be terminated with a semicolon ,
215
215
unless they end with a block or are used as the value for a block.
216
216
217
217
E.g.,
@@ -229,7 +229,7 @@ loop {
229
229
}
230
230
```
231
231
232
- Use a semi-colon where an expression has void type, even if it could be
232
+ Use a semicolon where an expression has void type, even if it could be
233
233
propagated. E.g.,
234
234
235
235
``` rust
0 commit comments