hello_world/
lib.rs

1//! Provides a function `hello()` that returns the word "world!".
2//!
3//! ### Example
4//!
5//! ```
6//! let what = hello_world::hello();
7//! assert_eq!(what, "world!".to_string());
8//! ```
9
10/// Returns the word "world!".
11pub fn hello() -> String {
12    "world!".to_string()
13}