Skip to content

Commit 459606f

Browse files
committed
Fix a few nits (doc, typo, parens matching).
1 parent f4694db commit 459606f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-impl-only-use.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ struct Zoo { // wait, what happens here?
4949

5050
fn main() {
5151
let x = "foo";
52-
let y = x.zoo(); // won’t compile because `zoo::Zoo` not in scope
52+
let y = x.zoo();
5353
}
5454
```
5555

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

5959
- Change the name of the `struct` to something else.
60-
- Qualified the `use`.
60+
- Qualify the `use`.
6161

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

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

123123
# Rationale and alternatives
124124
[alternatives]: #alternatives

0 commit comments

Comments
 (0)