Create a project for demonstrating functions
This commit is contained in:
parent
f98580a681
commit
ad1c063af0
3 changed files with 22 additions and 0 deletions
7
functions/Cargo.lock
generated
Normal file
7
functions/Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "functions"
|
||||||
|
version = "0.1.0"
|
6
functions/Cargo.toml
Normal file
6
functions/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[package]
|
||||||
|
name = "functions"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
9
functions/src/main.rs
Normal file
9
functions/src/main.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
|
||||||
|
another_function();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn another_function() {
|
||||||
|
println!("Another function.");
|
||||||
|
}
|
Loading…
Reference in a new issue