mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2024-12-25 20:30:34 +08:00
Fixed a typo-error in 'src/SUMMARY.md'.
This commit is contained in:
parent
1ae19e883e
commit
cda727fba7
1
projects/backyard/src/garden.rs
Normal file
1
projects/backyard/src/garden.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod vegetables;
|
2
projects/backyard/src/garden/vegetables.rs
Normal file
2
projects/backyard/src/garden/vegetables.rs
Normal file
@ -0,0 +1,2 @@
|
||||
#[derive(Debug)]
|
||||
pub struct Asparagus {}
|
@ -1,3 +1,8 @@
|
||||
use crate::garden::vegetables::Asparagus;
|
||||
|
||||
pub mod garden;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
let plant = Asparagus {};
|
||||
println! ("I'm growing {:?}!", plant);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user