Skip to content

Commit ad6fc23

Browse files
authored
Create FunctionWithParameters.rs
1 parent e6f5c48 commit ad6fc23

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Function/FunctionWithParameters.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
fn main() {
2+
print_message("Rust is awesome!");
3+
4+
}
5+
6+
fn print_message(message: &str) {
7+
println!("{}", message);
8+
}

0 commit comments

Comments
 (0)