Skip to content

Commit

Permalink
Fix a few nits (doc, typo, parens matching).
Browse files Browse the repository at this point in the history
  • Loading branch information
hadronized committed Oct 4, 2017
1 parent f4694db commit 459606f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text/0000-impl-only-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ struct Zoo { // wait, what happens here?

fn main() {
let x = "foo";
let y = x.zoo(); // won’t compile because `zoo::Zoo` not in scope
let y = x.zoo();
}
```

However, you can see that we’ll hit a problem here, because we define an ambiguous symbol. We have
two solutions:

- Change the name of the `struct` to something else.
- Qualified the `use`.
- Qualify the `use`.

The problem is that if we qualify the `use`, what name do we give the trait? We’re not even
referring to it directly.
Expand Down Expand Up @@ -118,7 +118,7 @@ extern crate my_crate as _;

This RFC tries to solve a very specific problem (when you *must* alias a trait use). It’s just a
nit to make the syntax more *“rust-ish”* (it’s very easy to think such a thing would work given the
way `_` works pretty much everywhere else.
way `_` works pretty much everywhere else).

# Rationale and alternatives
[alternatives]: #alternatives
Expand Down

0 comments on commit 459606f

Please sign in to comment.