Skip to content

trpl: explain how to inhibit rustdoc's auto-main #30153

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

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

durka
Copy link
Contributor

@durka durka commented Dec 1, 2015

I think this fixes #30137. I basically just repeated some details that were scattered around other places in this document, and emphasized that you probably don't want an extern crate or mod statement to end up inside a function.

I think this fixes rust-lang#30137. I basically just repeated some details that were scattered around other places in this document, and emphasized that you probably don't want an `extern crate` or `mod` statement to end up inside a function.
@rust-highfive
Copy link
Contributor

r? @Manishearth

(rust_highfive has picked a reviewer for you, use r? to override)

@durka
Copy link
Contributor Author

durka commented Dec 1, 2015

r? @steveklabnik

@steveklabnik
Copy link
Member

Looks great, thanks!

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 2, 2015

📌 Commit ca07c2e has been approved by steveklabnik

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Dec 2, 2015
I think this fixes rust-lang#30137. I basically just repeated some details that were scattered around other places in this document, and emphasized that you probably don't want an `extern crate` or `mod` statement to end up inside a function.
bors added a commit that referenced this pull request Dec 2, 2015
@bors bors merged commit ca07c2e into rust-lang:master Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document usage of extern crate declaration in doctests
5 participants