Skip to content

Commit 9b6d21a

Browse files
committed
Clarify language for multi-line imports
1 parent c13947d commit 9b6d21a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

guide/items.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,10 @@ use a::b::{foo, bar, baz};
453453
Prefer to use multiple imports rather than a multi-line import. However, tools
454454
should not split imports by default (they may offer this as an option).
455455

456-
If an import does require multiple lines, then break after the opening brace
457-
and before the closing brace, use a trailing comma, and block indent the names.
456+
If an import does require multiple lines (either because a list of single names
457+
does not fit within the max width, or because of the rules for nested imports
458+
below), then break after the opening brace and before the closing brace, use a
459+
trailing comma, and block indent the names.
458460

459461

460462
```rust

0 commit comments

Comments
 (0)