mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 16:37:36 +00:00
Fixes formatting
Without this, a.rs appears as a struck out line.
This commit is contained in:
parent
f9cea4b3a0
commit
bc698ba3ef
@ -2550,18 +2550,21 @@ fn main() {
|
|||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
And here an example with multiple files:
|
And here an example with multiple files:
|
||||||
|
|
||||||
~~~{.ignore}
|
~~~{.ignore}
|
||||||
// a.rs - crate root
|
// a.rs - crate root
|
||||||
use b::foo;
|
use b::foo;
|
||||||
mod b;
|
mod b;
|
||||||
fn main() { foo(); }
|
fn main() { foo(); }
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
~~~{.ignore}
|
~~~{.ignore}
|
||||||
// b.rs
|
// b.rs
|
||||||
use b::c::bar;
|
use b::c::bar;
|
||||||
pub mod c;
|
pub mod c;
|
||||||
pub fn foo() { bar(); }
|
pub fn foo() { bar(); }
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
// c.rs
|
// c.rs
|
||||||
pub fn bar() { println("Baz!"); }
|
pub fn bar() { println("Baz!"); }
|
||||||
|
Loading…
Reference in New Issue
Block a user