From cca7def40261cae2fa2d8ef970058427f06cc9be Mon Sep 17 00:00:00 2001 From: Jim Infield Date: Tue, 10 Aug 2021 14:19:56 -0500 Subject: [PATCH] create starting point --- src/main.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e7a11a9..0c25b5a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,20 @@ +#![allow(unused)] fn main() { - println!("Hello, world!"); + + let args = vec![ + "string1", + "string2", + ]; + + println!(); + + for arg in args { + println!("{}",func(&arg)); + }; + + println!(); +} + +fn func(s: &str) -> String { + s.into() }