-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonas Wilkens
authored and
Jonas Wilkens
committed
May 21, 2021
1 parent
9fe64d9
commit abba852
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
mod elo; | ||
mod subdir; | ||
|
||
use std::io; | ||
use crate::elo; | ||
use crate::subdir::subdirfile; | ||
|
||
fn main() { | ||
println!("{}", elo::lebo()); | ||
println!("{}", subdirfile::my_life()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
mod elo { | ||
pub fn lebo() -> String { | ||
String::from("ELO") | ||
} | ||
} | ||
mod subdir { | ||
pub mod subdirfile { | ||
pub fn my_life() -> String { | ||
String::from("MY LIFE") | ||
} | ||
} | ||
|
||
} | ||
|
||
use std::io; | ||
use crate::subdir::subdirfile; | ||
|
||
fn main() { | ||
println!("{}", elo::lebo()); | ||
println!("{}", subdirfile::my_life()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod subdirfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub fn my_life() -> String { | ||
String::from("MY LIFE") | ||
} |