test_package/lib.rs
1/// Prints a semi-individual heartwarming message
2///
3/// #Example
4/// ```
5/// use test_package::welcome;
6/// let name = "Gabriel";
7/// let age = 20;
8///
9/// welcome(name, age);
10/// ```
11pub fn welcome(name: &str, age: u8) {
12 println!(
13"Dear {},\nthank you for exploring the world of Rust,\
14as a Rustaceans u will find your way to glory. With {} \
15years you have plenty of time to fell for Rust over and over again.",
16name, age);
17}
18
19