Skip to content
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

traits.md: Fix example of using traits to match description #24112

Merged
merged 1 commit into from
Apr 7, 2015
Merged

traits.md: Fix example of using traits to match description #24112

merged 1 commit into from
Apr 7, 2015

Conversation

joshtriplett
Copy link
Member

traits.md said:

If we add a use line right above main and make the right things public,
everything is fine:

However, the use line was actually placed at the top of the file instead. Move
the use line to right above main. That also makes the example more evocative
of cases where the module is defined in a separate file.

traits.md said:

If we add a `use` line right above `main` and make the right things public,
everything is fine:

However, the use line was actually placed at the top of the file instead.  Move
the use line to right above main.  That also makes the example more evocative
of cases where the module is defined in a separate file.
@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Apr 6, 2015

📌 Commit 59d8898 has been approved by steveklabnik

@steveklabnik
Copy link
Member

Thanks

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 7, 2015
 traits.md said:

If we add a `use` line right above `main` and make the right things public,
everything is fine:

However, the use line was actually placed at the top of the file instead.  Move
the use line to right above main.  That also makes the example more evocative
of cases where the module is defined in a separate file.
@bors bors merged commit 59d8898 into rust-lang:master Apr 7, 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.

4 participants