Skip to main content

Education_Starting_Point_Say_Hello/
lib.rs

1#[cfg(feature="hello")]
2pub fn say_hello(name:&str) -> String{
3    format!("Hello, {}!", name)
4}
5#[cfg(feature="hello")]
6pub fn say_hello_to_everyone() -> String{
7    "Hello, everyone!".to_string()
8}
9#[cfg(feature="bye")]
10pub fn say_goodbye(name:&str) -> String{
11    format!("Good Bye, {}!", name)
12}
13#[cfg(feature="hello")]
14pub fn say_goobye_to_everyone() -> String{
15    "Good Bye, everyone!".to_string()
16}