Skip to content

Commit 2f60768

Browse files
committed
Auto merge of #28858 - jryans:crate-doc-syntax, r=alexcrichton
Without the blank lines, the content is displayed inline, including the `rust,ignore` syntax hint. r? @steveklabnik
2 parents 547c2cd + ed97bcd commit 2f60768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/trpl/crates-and-modules.md

+2
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,13 @@ The third `use` statement bears more explanation. It's using "brace expansion"
576576
globbing to compress three `use` statements into one (this sort of syntax
577577
may be familiar if you've written Linux shell scripts before). The
578578
uncompressed form of this statement would be:
579+
579580
```rust,ignore
580581
use sayings::english;
581582
use sayings::english::greetings as en_greetings;
582583
use sayings::english::farewells as en_farewells;
583584
```
585+
584586
As you can see, the curly brackets compress `use` statements for several items
585587
under the same path, and in this context `self` just refers back to that path.
586588
Note: The curly brackets cannot be nested or mixed with star globbing.

0 commit comments

Comments
 (0)