Skip to content

Commit 44f29fb

Browse files
committed
oops, forgot to fix method name
1 parent 56b450b commit 44f29fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_resolve/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ trying to import a function from a trait. An example of this error:
100100
```
101101
mod foo {
102102
pub trait MyTrait {
103-
fn doSomething();
103+
fn do_something();
104104
}
105105
}
106-
use foo::MyTrait::doSomething;
106+
use foo::MyTrait::do_something;
107107
```
108108
109109
In general, it's not legal to directly import methods belonging to a

0 commit comments

Comments
 (0)