mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Augusto
d743070d06
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago |
README.md
changes
Instructions
Define the function add_excitement
that add the exclamation point at the end of every sentenced that is passed to the function without returning anything but just modifying the input.
Expected Functions
fn add_excitement(s: &) {
}
Usage
Here is an incomplete program to test your function
fn main() {
let mut a = String::from("Hello");
println!("the value of `a` before changing {}", a);
add_excitement(a);
println!("The value of `a` after changing {}", a);
}
And its expected output
student@ubuntu:~/[[ROOT]]/test$ cargo run
the value of `a` before changing Hello
The value of `a` after changing Hello!
student@ubuntu:~/[[ROOT]]/test$