-
Notifications
You must be signed in to change notification settings - Fork 13.4k
document advanced extern crate
/use
syntax
#28250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I took a stab at fixing rust-lang#28064. Not sure if this all-features-in-one-example approach is the right one. Also I completely made up the terms "star globbing" and "brace expansion globbing" -- they are just called "glob-like syntax" in the reference.
(rust_highfive has picked a reviewer for you, use r? to override) |
extern crate
/use
syntaxextern crate
/use
syntax
```rust,ignore | ||
extern crate phrases as sayings; | ||
|
||
use sayings::japanese::greetings as ja_greetings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps jp_greetings
? jp
is the usual shorthand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems JP is the country (ISO 3166) and JA is the language (ISO 639).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the correction :)
Somewhere we need to mention that a crate named |
@sinistersnare added. |
@bors: r+ rollup |
📌 Commit a506b7c has been approved by |
I took a stab at fixing #28064. Not sure if this all-features-in-one-example approach is the right one. Also I completely made up the terms "star globbing" and "brace expansion globbing" -- they are just called "glob-like syntax" in the reference.
I took a stab at fixing #28064. Not sure if this all-features-in-one-example approach is the right one. Also I completely made up the terms "star globbing" and "brace expansion globbing" -- they are just called "glob-like syntax" in the reference.