about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlisdair Owens <awo101@zepler.net>2015-07-18 20:46:47 +0100
committerAlisdair Owens <awo101@zepler.net>2015-07-18 20:46:47 +0100
commit44f29fbdbc5edf067c272851d38e32a747613597 (patch)
treef0686ad7763f20ad96ef27d74010d65e51cee47a /src
parent56b450b2912d1fe1f2c88d05e79f85f78ff2ec98 (diff)
downloadrust-44f29fbdbc5edf067c272851d38e32a747613597.tar.gz
rust-44f29fbdbc5edf067c272851d38e32a747613597.zip
oops, forgot to fix method name
Diffstat (limited to 'src')
-rw-r--r--src/librustc_resolve/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs
index 44ef67f66a0..30a74b35af5 100644
--- a/src/librustc_resolve/diagnostics.rs
+++ b/src/librustc_resolve/diagnostics.rs
@@ -100,10 +100,10 @@ trying to import a function from a trait. An example of this error:
 ```
 mod foo {
     pub trait MyTrait {
-        fn doSomething();
+        fn do_something();
     }
 }
-use foo::MyTrait::doSomething;
+use foo::MyTrait::do_something;
 ```
 
 In general, it's not legal to directly import methods belonging to a