Created
April 8, 2022 19:31
-
-
Save jcar787/ab27a650f28fa5f732f5ad83e5cdc040 to your computer and use it in GitHub Desktop.
simple functions in rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn print_my_number(i: i32) { | |
println!("The value that you sent is: {}", i); | |
} | |
fn main() { | |
let i = 42; | |
print_my_number(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment