We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 547c2cd + ed97bcd commit 2f60768Copy full SHA for 2f60768
src/doc/trpl/crates-and-modules.md
@@ -576,11 +576,13 @@ The third `use` statement bears more explanation. It's using "brace expansion"
576
globbing to compress three `use` statements into one (this sort of syntax
577
may be familiar if you've written Linux shell scripts before). The
578
uncompressed form of this statement would be:
579
+
580
```rust,ignore
581
use sayings::english;
582
use sayings::english::greetings as en_greetings;
583
use sayings::english::farewells as en_farewells;
584
```
585
586
As you can see, the curly brackets compress `use` statements for several items
587
under the same path, and in this context `self` just refers back to that path.
588
Note: The curly brackets cannot be nested or mixed with star globbing.
0 commit comments