File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ fn bar() {}
112
112
fn baz () {}
113
113
```
114
114
115
+ ### Trailing whitespace
116
+
117
+ Do not include trailing whitespace on the end of any line. This includes blank
118
+ lines, comment lines, and code lines.
119
+
115
120
### Sorting
116
121
117
122
In various cases, the default Rust style specifies to sort things. If not
@@ -225,8 +230,8 @@ newline after the opening sigil, and a newline before the closing sigil.
225
230
226
231
Prefer to put a comment on its own line. Where a comment follows code, put a
227
232
single space before it. Where a block comment appears inline, use surrounding
228
- whitespace as if it were an identifier or keyword. Do not include trailing
229
- whitespace after a comment or at the end of any line in a multi-line comment.
233
+ whitespace as if it were an identifier or keyword.
234
+
230
235
Examples:
231
236
232
237
``` rust
You can’t perform that action at this time.
0 commit comments