Skip to content

Instantly share code, notes, and snippets.

@jcar787
Created April 8, 2022 19:31
Show Gist options
  • Save jcar787/ab27a650f28fa5f732f5ad83e5cdc040 to your computer and use it in GitHub Desktop.
Save jcar787/ab27a650f28fa5f732f5ad83e5cdc040 to your computer and use it in GitHub Desktop.
simple functions in rust
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