Skip to content

Commit 4727667

Browse files
committed
Fix a small typo in the example.
1 parent f4694db commit 4727667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-impl-only-use.md

+2-2
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.

0 commit comments

Comments
 (0)