Improve examples in the E0255/E0256 error explanations.

This commit is contained in:
Nick Hamann 2015-05-14 02:50:39 -05:00
parent 06aef339f1
commit d636b5cf65

View file

@ -100,12 +100,12 @@ module.
An example of this error:
```
use foo::FOO; // error, do `use foo::FOO as BAR` instead
use bar::foo; // error, do `use bar::foo as baz` instead
fn FOO() {}
fn foo() {}
mod foo {
pub const FOO: bool = true;
mod bar {
pub fn foo() {}
}
fn main() {}
@ -121,7 +121,7 @@ An example of this error:
```
use foo::Bar; // error
struct Bar;
type Bar = u32;
mod foo {
pub mod Bar { }