Fun with funcs

This commit is contained in:
Dan Buch 2017-12-22 08:59:25 -05:00
parent 4f55c0c186
commit 44afa4b13c
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
2 changed files with 16 additions and 0 deletions

View File

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

View File

@ -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);
}