Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
joshtriplett:patch-1
Apr 7, 2015
Merged

traits.md: Fix example of using traits to match description#24112
bors merged 1 commit into
rust-lang:masterfrom
joshtriplett:patch-1

Conversation

@joshtriplett

Copy link
Copy Markdown
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
Copy Markdown
Contributor

@bors: r+ rollup

@bors

bors commented Apr 6, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit 59d8898 has been approved by steveklabnik

@steveklabnik

Copy link
Copy Markdown
Contributor

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