commit ee7febb8c433877ebeeeb737ddb66c3c7fd9f943 Author: Jim Infield Date: Tue Aug 10 16:41:48 2021 -0500 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..110a08f --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "cw_rust_athletic-statistics" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a757db6 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "cw_rust_athletic-statistics" +version = "0.1.0" +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..54ab73b --- /dev/null +++ b/src/main.rs @@ -0,0 +1,20 @@ +#![allow(unused)] +fn main() { + + let args = vec![ + "string1", + "string2", + ]; + + println!(); + + for arg in args { + println!("{}",func(&arg)); + }; + + println!(); +} + +fn func(s: &str) -> String { + s.into() +}