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

Add `use a::b::{c, mod};` to the manual #16537

Merged
merged 1 commit into from Aug 17, 2014

Conversation

Projects
None yet
3 participants
@ghost

ghost commented Aug 16, 2014

No description provided.

@nham

View changes

Show outdated Hide outdated src/doc/rust.md
An example of `use` declarations:
~~~~
use std::iter::range_step;
use std::option::{Some, None};
use std::collections::hash::{mod, HashMap};

This comment has been minimized.

@nham

nham Aug 16, 2014

Contributor

This should be std::collections::hashmap::{mod, HashMap} unless I'm missing something.

@nham

nham Aug 16, 2014

Contributor

This should be std::collections::hashmap::{mod, HashMap} unless I'm missing something.

This comment has been minimized.

@ghost

ghost Aug 16, 2014

Of course! Thank you.

@ghost

ghost Aug 16, 2014

Of course! Thank you.

@steveklabnik

This comment has been minimized.

Show comment
Hide comment
@steveklabnik

steveklabnik Aug 16, 2014

Member

Thanks for adding this! I would like another reviewer to confirm the grammar is correct, though.

Member

steveklabnik commented Aug 16, 2014

Thanks for adding this! I would like another reviewer to confirm the grammar is correct, though.

@bors

This comment has been minimized.

Show comment
Hide comment
Contributor

bors commented on 7606f58 Aug 17, 2014

This comment has been minimized.

Show comment
Hide comment
@bors

bors Aug 17, 2014

Contributor

merging jakub-/rust/use-mod-manual = 7606f58 into auto

Contributor

bors replied Aug 17, 2014

merging jakub-/rust/use-mod-manual = 7606f58 into auto

This comment has been minimized.

Show comment
Hide comment
@bors

bors Aug 17, 2014

Contributor

jakub-/rust/use-mod-manual = 7606f58 merged ok, testing candidate = a12a4dd

Contributor

bors replied Aug 17, 2014

jakub-/rust/use-mod-manual = 7606f58 merged ok, testing candidate = a12a4dd

This comment has been minimized.

Show comment
Hide comment
@bors

bors Aug 17, 2014

Contributor

fast-forwarding master to auto = a12a4dd

Contributor

bors replied Aug 17, 2014

fast-forwarding master to auto = a12a4dd

@bors bors closed this Aug 17, 2014

@bors bors merged commit 7606f58 into rust-lang:master Aug 17, 2014

1 of 2 checks passed

continuous-integration/travis-ci The Travis CI build failed
Details
default all tests passed

@ghost ghost deleted the use-mod-manual branch Aug 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment