1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
pub mod ss; /// Returns hello world string /// # Example /// ``` /// let arg = minigrep_lunax1::util::print_hello(); /// assert_eq!("Hello World", arg); /// ``` pub fn print_hello() -> &'static str { "Hello World" } #[cfg(test)] mod tests { use super::print_hello; #[test] fn it_works() { assert_eq!("Hello World", print_hello()); } }