Fun with funcs

cat-town
Dan Buch 6 years ago
parent 4f55c0c186
commit 44afa4b13c
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -0,0 +1,6 @@
[package]
name = "functions"
version = "0.1.0"
authors = ["Dan Buch <daniel.buch@gmail.com>"]
[dependencies]

@ -0,0 +1,10 @@
fn main() {
println!("Hello, world!");
another_function(5, 6);
}
fn another_function(x: i32, y: i32) {
println!("The value of x is: {}", x);
println!("The value of y is: {}", y);
}
Loading…
Cancel
Save